Bootstrap First Example

Let’s begin with our first Bootstrap example and make learning interesting with the live running of the code. We will also learn the difference between fixed-width (responsive) and full-width containers.

The following is the code to create and run your first web page with Bootstrap

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class = "container">
 <h1>Demo Heading</h1>
 <h2>Demo Sub-Heading</h2>
 <p>This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. </p>
</div>

<div class = "container-fluid">
 <h1>Demo Heading</h1>
 <h2>Demo Sub-Heading</h2>
 <p>This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. This is an example. </p>
</div>

</body>
</html>

Output

Bootstrap First Example

Video Tutorial – Bootstrap First Example

The following is the complete video tutorial to learn how to run your first example in Bootstrap:


If you liked the tutorial, spread the word and share the link and our website Studyopedia with others:


Read More:

Bootstrap Set Environment
Bootstrap Grids
Studyopedia Editorial Staff
[email protected]

We work to create programming tutorials for all.

No Comments

Post A Comment