CodesJava

Easy learning with example program codes

Bootstrap Page Header Tutorial


The .page-header class is used to add page header. A page header is like a section divider. It adds a horizontal line under the heading. To create a page header we have to use a div element with class .page-header.

Bootstrap Page Header Example:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Page Header Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
 
<div class="container">
  <div class="page-header">
    <h2>Bootstrap Page Header Example</h2>      
  </div>
  <p>Bootstrap Example.</p>      
</div>
 
</body>
</html>
Try it:

Bootstrap Page Header Example on jsbin.com

Please follow and like us:

Bootstrap 3 Tutorial



Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki