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,
- remove div vertical scroll
- Create HTML button that looks like a href hyperlink
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key
- HTML5 HELLO WORLD Example
- Get HTML table td, tr or th inner content value with id or name attribute
- Adding Sub Headings to Bootstrap Header tags
- What is the doctype for HTML5?
- Chessboard with pieces using pure HTML and CSS
- Hyperlink in html (anchor tag) without a underline
- W3 : character data is not allowed here html validation error
- Fibonacci series from 1 to 500 table
- 9 Border to DIV Element in HTML Examples
- How to add multiple spaces between html page text
- How to turn off autocomplete in input fields in HTML Form
- Default speed of Marquee tag : SCROLLAMOUNT
- How to word wrap in HTML
- Force convert HTML text input to upper case
- HTML5 CSS3 Color Codes List
- How to remove old 404 pages ulrs from Google crawler
- reCaptcha Verification expired. Check the checkbox again
- All directional arrows codes for HTML
- Align html element at the center of page vertically and horizontally
- How to make a div tag clickable
- Remove Html head and body tags from ckeditor source
- Auto Refresh Webpage after every x Second or Minute using Meta Tag?
More Posts:
- AlertDialog with single button example : Android - Android
- Resolving DNS_PROBE_FINISHED_NXDOMAIN Google Chrome Error - Google
- How to Copy files from Docker Container to Host System - Docker
- Upload docx file using PHP script - PHP
- [Fix] bash: script.sh: /bin/bash^M: bad interpreter: No such file or directory - Bash
- How to uninstall pip Python packages - Python
- How to install AWS CLI on Ubuntu - AWS
- Java 8 - Convert List to Map Examples - Java