bootstrap cdn

To include the Bootstrap library in your webpage using a CDN, you can follow these steps:

  1. Open your HTML file in a text editor.
  2. Add the following code inside the <head> section of your HTML file:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">

This code adds a link to the Bootstrap CSS file hosted on the CDN.

  1. If you also want to use Bootstrap's JavaScript components, add the following code just before the closing </body> tag of your HTML file:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>

This code adds a link to the Bootstrap JavaScript file hosted on the CDN.

That's it! Your webpage will now have access to the Bootstrap library. You can start using Bootstrap classes and components in your HTML code.

Please note that the version number in the CDN URLs may change over time. Make sure to check the official Bootstrap documentation for the latest version and update the URLs accordingly.