Bootstrap 4 Tutorial

BS4 Introduction

How to use Bootstrap

BS4 Layout

BS4 Grid System

BS4 Typography

BS4 Colors

BS4 Table

BS4 Images

BS4 Jumbotron

BS4 Alerts

BS4 Buttons

BS4 Button Group

BS4 Badges

BS4 Progress Bar

BS4 Pagination

BS4 Breadcrumb

BS4 Card

BS4 Collapse

BS4 Nav Tabs Pills

BS4 Navbar

BS4 Tooltip

BS4 Carousel

BS4 Scrollspy

BS4 Forms

BS4 Form Validation

BS4 Form Custom

Page Stats

Visitor: 372

Bootstrap 4 Layout

Bootstrap requires the use of the HTML5 doctype, and HTML tag along with the lang attribute, and the correct meta character set.

Bootstrap is developed mobile first, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries. To ensure proper rendering and touch zooming for all devices, add the responsive viewport meta tag to your <head> section.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">	
  </head>
</html>

Bootstrap 4 also requires a container element to wrap site contents. There are two container classes:
The '.container' class provides a responsive fixed width container
The '.container-fluid' class provides a full width container, spanning the entire width of the viewport


Example 1: Create web page using Bootstrap 4 using '.container' class.



Example 2: Create web page using Bootstrap 4 using '.container-fluid' class.

Updated on: 27-July-2018