What is Bootstrap Jumbotron and how to use it


A Jumbotron in Bootstrap Web UI framework is a huge box-shaped component that is displayed on the page to draw user attention to some important content.

-According to Bootstrap Jumbotron is a lightweight, flexible component that can optionally extend the entire viewport to showcase key content on your site.

The default color of Jumbotron is gray with rounded corners. A jumbotron is the CSS class for creating Jumbotron, It contains an H1 tag along with a p tag to display some text inside it.

Code Snippet: jumbotron-example.html
<!DOCTYPE html>
<head>
  <title>What is Bootstrap Jumbotron?</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
  <div class="jumbotron">
    <h1>What is Bootstrap Jumbotron?</h1>      
    <p>A jumbotron is a huge box that is displayed on the page to draw attention of some important content.</p>
  </div>    
</div>

</body>
</html>


















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap