Last Updated on April 26, 2023 by Roshan Parihar
Learn how to add second-level heading using HTML h2 tag in HTML document. The h2 tag is the second-ranked heading to add in a webpage. You can use this tag to add much content with headings.
Syntax
1 |
<h2>Enter second level heading text here...</h2> |
Example
1 |
<h2>This is the h2 heading text</h2> |
Output
This is the h2 heading text
Resources and References of HTML h2 tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github