asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > Hn Element

<Hn Element | Hn Object


Renders text in heading style.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax


Remarks

The elements H1 thru H6 are used to specify different sized headings.

Headings are usually displayed in a bolder and larger font than normal body text, with level 1 headings ( H1 ) being the most prominent, and level 6 headings ( H6 ) the least.

Heading elements start on a new line. All browsers add extra space before heading elements.

NOTE: Both start and end tags are required.

Attributes

The <hn> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

<H2>This is a level 2 heading</H2>
<H3>This is a level 3 heading</H3>

This is a level 2 heading

<This is a level 3 heading


See Also

Using Heading Elements



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note