h2 tag
<H2>
Explanation
H2 tag is used to insert level 2 heading in a document.
Example Code:
Result :
Level 2 Heading
- <h2> is considered as "Level 2" heading.
- The font size derived in level 2 heading is "18 pixels".
- It is necessary to add closing tags for this tag.
It is available in the previous versions of HTML.
It supports both
Global Attributes and
Event Attributes in HTML5.
Limitations:
It is applicable to all major browsers.