Adding Sub Headings to Bootstrap Header tags


To add Sub Heading for H1-H6 tag we can make use of tag within the header tags.

You can also make other HTML elements behave like the secondary header tags by using class small.

Example :
<h1>This is My H1 Heading <small>This is my sub heading</small></h1>
<h2>This is My H2 Heading <small>This is my sub heading</small></h2>
<h3>This is My H3 Heading <small>This is my sub heading</small></h3>
<h4>This is My H4 Heading <small>This is my sub heading</small></h4>
<h5>This is My H5 Heading <small>This is my sub heading</small></h5>
<h6>This is My H6 Heading <small>This is my sub heading</small></h6>
Output :

This is My H1 Heading This is my sub heading

This is My H2 Heading This is my sub heading

This is My H3 Heading This is my sub heading

This is My H4 Heading This is my sub heading

This is My H5 Heading This is my sub heading
This is My H6 Heading This is my sub heading

Top Hashtags:

Advertisements

Advertisements




Advertisements