Working with Bootstrap Jumbotron


Jumbotron component can optionally increase the size of headings and add a lot of margin for landing page content.

To use it follow the below given steps −

  • Create a container <div> with the class of .jumbotron.
  • In addition to a larger <h1>, the font-weight is reduced to 200

Let us see an example −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class = "container">
         <div class = "jumbotron">
            <h1>Welcome to first page!</h1>
            <p>Example for jumbotron.</p>
            <p>
               <a class = "btn btn-primary btn-lg" role = "button">Button</a>
            </p>
         </div>
      </div>
   </body>
</html>

Updated on: 12-Jun-2020

68 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements