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
More Posts related to Html,
- How to remove old 404 pages ulrs from Google crawler
- W3 HTML validator warning Unable to Determine Parse Mode
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key
- Align html element at the center of page vertically and horizontally
- HTML Images - Attributes and Formats
- 9 Border to DIV Element in HTML Examples
- Create HTML button that looks like a href hyperlink
- What is the doctype for HTML5?
- Simple Crossword Puzzle example using Pure HTML, CSS and JavaScript
- How to make a div tag clickable
- The author stylesheet specified in tag script is too long - document contains 21759 bytes whereas the limit is 10000 bytes
- W3 : character data is not allowed here html validation error
- How to set background color in HTML page?
- Auto Refresh Webpage after every x Second or Minute using Meta Tag?
- Default speed of Marquee tag : SCROLLAMOUNT
- Get HTML table td, tr or th inner content value with id or name attribute
- How to add multiple spaces between html page text
- Chessboard with pieces using pure HTML and CSS
- How to turn off autocomplete in input fields in HTML Form
- remove div vertical scroll
- Fibonacci series from 1 to 500 table
- Remove Html head and body tags from ckeditor source
- reCaptcha Verification expired. Check the checkbox again
- HTML5 CSS3 Color Codes List
- All directional arrows codes for HTML
More Posts:
- What are the 8 Primitive Data Types in Java - Java
- How to Download and Install Android adb Tool on Linux, Mac or Windows - Android
- 32: Python Program to Find Square Root of a Number - Python-Programs
- How to know the current shell you are logged in? - Bash
- [Fix] Microsoft Remote Desktop Error Code: 0x204 - Microsoft
- How to Get the Day Name From Date In Java - Java
- How to disable warnings while Python file execution - Python
- Fix: Mac Preview App Tools Crop option disabled - MacOS