Heading elements describe content's section and information it presents.
They are considered to be the titles and sub-titles of the content itself.
Hierarchy starts with <h1> element as the highest level heading (most important one) and ends with <h6> as the lowest level.
Higher level headings usually appear in larger fonts.
Syntax:
<h1></h1>, <h2></h2>, <h3></h3>, <h4></h4>, <h5></h5>, <h6></h6>
Attributes:
- id, class (document-wide identifiers)
- lang (language information), dir (text direction)
- title (element title)
- style (inline style information)
- onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)
Example
HTML heading elements:
Comments
No comments have been made yet.
Please login to leave a comment. Login now