hn element | hn object
[This documentation is preliminary and is subject to change.]
Renders text in heading style.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 7.5.5
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Remarks
Use H1 through H6 to specify different sizes and styles of headings.
Examples
This example uses the H1 element to apply a level-1 heading style to the contained text.
<H1>Welcome to Internet Explorer!</H1>
Build date: 3/8/2012

