What is Bootstrap?

Bootstrap is a CSS (Cascading Style Sheets) framework, which is used to develop a responsive website. It is an open-source and mobile-first front-end framework. It has design templates that are based on HTML and for typography, buttons, forms, navigation, etc.

Bootstrap is a web framework that aims to make easier and faster development of web pages. It also consists of many Javascript components, which are in the form of jQuery plugins. These plugins provide many other user interface elements like tooltips, dialog boxes, and carousel. 

History of Bootstrap

Bootstrap, previously known as Twitter Blueprint, was developed by Mark Otto and Jacob Thornton as a framework on Twitter to make it compatible with other internal tools. Bootstrap was released as an open-source project on 19 august 2011.

Why use Bootstrap?

Save time – Bootstrap consists of predefined design templates and classes that can be used for saving time and effort.

Responsiveness – Bootstrap helps in developing responsive websites that are automatically adjustable according to the device size.

Browser compatibility – Bootstrap is compatible with almost every browser like Google Chrome, Mozilla Firefox, Internet Explorer, etc.

Open-source – It is an open-source framework, which means it is freely available to everyone.

Bootstrap 4

Bootstrap 4 is the latest version of Bootstrap that consist of new components, new stylesheets, and more responsiveness. The first alpha version of Bootstrap 4 was released on 19 august 2015, and the first beta version was released on 10 August 2017.

Where to get Bootstrap?

There are two ways of using Bootstrap 4; either you can include Bootstrap 4 from CDN (Content Delivery Network) or download Bootstrap 4 from the official site https://getbootstrap.com.

Bootstrap 4 Tutorial

Environment Setup for Bootstrap 4 CDN

CSS (Cascading style sheets)

You have to put the CSS <link> into the <head> tag. The link is givenbelow:-

Compiled and minified CSS

JS (JavaScript)

Some components need JavaScript to perform the task. They especially need jQuery, Popper.js, and JavaScript plugins.

You have to place the <script> just before the </body> tag is close. The link is given below:-

jQuery library

Popper JS

Latest compiled Java Script

Create Web page using Bootstrap 4

  • Add the HTML5 DOCTYPE

Bootstrap 4 needs HTML 5 DOCTYPE because it uses HTML elements and CSS properties.

  • Bootstrap 4 is mobile first

Bootstrap is designed so that websites are responsive on mobile.

Example

Output

Bootstrap 4 Tutorial

Bootsrtap Index

Bootstrap 4 Grid

Pin It on Pinterest

Share This