Description #
Bootstrap is a popular open-source front-end framework for developing responsive and mobile-first websites using HTML, CSS, and JavaScript. It provides ready-to-use design components, a flexible grid system, and JavaScript plugins to accelerate UI development.
History #
Bootstrap was originally created by Mark Otto and Jacob Thornton at Twitter in 2011 to unify the company’s UI tools. It was released as open-source software and quickly became the most popular CSS framework in the world. It is now maintained by a large community of developers.
Hello World Code #
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello, World!</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container text-center mt-5">
<h1>Hello, World!</h1>
</div>
</body>
</html>
How to Run #
Option 1: Online
- CodePen – Bootstrap Hello World (Paste the code)
- JSFiddle – Bootstrap (Choose Bootstrap from the external resources list)
Option 2: Local
- Copy the code above into an
.html
file - Open the file in a browser
- Modify as needed using Bootstrap classes
Key Concepts #
- Mobile-first responsive design
- Prebuilt UI components (buttons, cards, navbars, etc.)
- Flexbox-based grid system
- Utility classes for spacing, layout, and display
- Built-in themes and typography styles
- JavaScript components (modals, dropdowns, carousels)
- Customizable via SCSS variables
- Wide third-party theme and plugin ecosystem
- Consistent cross-browser UI
- Easy integration into any HTML project
Try It Online #
Fun Facts #
- Bootstrap was once called “Twitter Blueprint.”
- It’s the most starred CSS framework on GitHub.
- Bootstrap is used by NASA, Walmart, and millions of other sites.