Bootstrap Introduction - Introduction to Bootstrap
What is Bootstrap ?
- Bootstrap is a free front-end framework for faster and easier web development.
- Bootstrap includes HTML and CSS based design templates for typography, forms, buttons, tables, navigation, modals, image carousels and many other, as well as optional JavaScript plugins.
- Bootstrap also gives you the ability to easily create responsive designs.
Create a new index.html
Sample Code
Output
Include Bootstrap’s CSS and JS
- Another way to include Bootstrap's CSS and JS in your web page is to use a CDN (Content Delivery Network), which allows you to link to the files hosted on a third-party server. This method can be faster and easier than downloading and hosting the files yourself.
- To use a CDN for Bootstrap, add the following code to the <head> section of your HTML document:
- And add the following code at the end of the <body> section of your HTML document:
- Note that when using a CDN, you don't need to download or host the files. Instead, your web page will load the files from the CDN server.
Sample Code
Output
Bootstrap 5
- Bootstrap 5 uses HTML elements and CSS properties that require the HTML5 doctype.