April 16, 2016
Adding Subtitle to Page Header Class in Bootstrap 3
In Bootstrap, we have seen in the previous tutorial where we made use of a page header class to create a heading. But this time, we want to make that heading more appealing by adding a subtitle to it. This subtitle can be your tag line or a small info about your website. To add subtitle, we make use of small tag. Example is given below.
<!DOCTYPE html> <html> <head> <title>Bootstrap Tutorials for Beginners </title> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script> <script src="js/jquery.js"></script> <script src="js/bootstrap.js"></script> </head> <body> <div class="container-fluid"> <div class="page-header"> <h1>Bootstrap Header <small>This is an example of Bootstrap Header.</small> </h1> </div> </div> </body> </html>