-
Hajipur, Bihar, 844101
Hajipur, Bihar, 844101
Bootstrap Basics
Layout & Grid System
BS4 Grid Basic
BS4 Grid System
BS4 Stacked / Horizontal
BS4 Grid XSmall
BS4 Grid Small
BS4 Grid Medium
BS4 Grid Large
BS4 Grid XLarge
Content & Typography
BS4 Typography
BS4 Colors
BS4 Tables
BS4 Images
BS4 Jumbotron
BS4 Icons
BS4 Media Objects
BS4 Filters
Components
BS4 Alerts
BS4 Buttons
BS4 Button Groups
BS4 Badges
BS4 Progress Bars
BS4 Spinners
BS4 Pagination
BS4 List Groups
BS4 Cards
BS4 Dropdowns
BS4 Collapse
BS4 Navs
BS4 Navbar
Forms
JavaScript Components
Utilities & Helpers
Bootstrap is a free, open-source CSS framework developed by Twitter for creating responsive, mobile-first websites quickly and easily.
Bootstrap 4 includes:
Predefined CSS classes
Responsive grid system
JavaScript plugins (like modals, carousels, etc.)
Customizable themes
Reduces development time
Ensures mobile responsiveness
Consistent design
Built-in components (buttons, forms, navbars, etc.)
Easy customization and compatibility with all modern browsers
You can quickly start using Bootstrap by including it via CDN:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<!-- Your content here -->
<!-- jQuery and Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
Bootstrap’s grid system uses 12 columns and helps make layouts responsive.
Example (2 columns 50% each):
<div class="container">
<div class="row">
<div class="col-md-6">Column 1</div>
<div class="col-md-6">Column 2</div>
</div>
</div>
Component | Class Example |
---|---|
Button | btn btn-primary |
Navbar | navbar navbar-light |
Form | form-group , form-control |
Card | card , card-body |
Alerts | alert alert-success |
Q1. Create a primary button with button labeled "Click Me".
Q2. Create a responsive container with two columns.
Q3. Add a success alert box.
Q4. Create a Bootstrap card.
Q5. Create a form input with Bootstrap style.
Bootstrap Basics
Layout & Grid System
BS4 Grid Basic
BS4 Grid System
BS4 Stacked / Horizontal
BS4 Grid XSmall
BS4 Grid Small
BS4 Grid Medium
BS4 Grid Large
BS4 Grid XLarge
Content & Typography
BS4 Typography
BS4 Colors
BS4 Tables
BS4 Images
BS4 Jumbotron
BS4 Icons
BS4 Media Objects
BS4 Filters
Components
BS4 Alerts
BS4 Buttons
BS4 Button Groups
BS4 Badges
BS4 Progress Bars
BS4 Spinners
BS4 Pagination
BS4 List Groups
BS4 Cards
BS4 Dropdowns
BS4 Collapse
BS4 Navs
BS4 Navbar
Forms
JavaScript Components
Utilities & Helpers