Make an element look like a heading with Bootstrap


To make an element look like a heading, you can try to run the following code −

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">
         <h1>Planet</h1>
         <h2>Earth</h2>
         <h3>Asia</h3>
         <h4>India</h4>
         <h5>Hyderabad</h5>
         <h6>Madhapur</h6>
      </div>
   </body>
</html>

Updated on: 12-Jun-2020

99 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements