Bootstrap page-header class


Page header is used to add appropriate spacing around the headings on a page.

To use a page header, wrap your heading in a <div> with a class of .page-header −

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 = "page-header">
         <h1>
            Header
            <small>Subtext for header</small>
         </h1>
      </div>
      <p>Demo text! Demo text! Demo text! Demo text! Demo text!
         Demo text! Demo text! Demo text! Demo text!
      </p>
   </body>
</html>

Updated on: 12-Jun-2020

465 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements