<h> tag in HTML

The <h> tag stands for heading tag, there are six (h1, h2, h3, h4, h5, and h6) <h> tags are used in HTML. The <h1> to <h6> tags are used to define HTML headings.

Important Description

  • <h1> tag is most important and useful tag in heading, similarly <h6> least important heading tag.
  • Open and close tag required in <h>.

Example of <h> tag

Result Look Like

This is <h1> tag example.

This is <h2> tag example.

This is <h3> tag example.

This is <h4> tag example.

This is <h5> tag example.
This is <h6> tag example.

<h> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<h1> to <h6> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

The "align" attribute is not supported in HTML5:

Attribute Value Description
align left
right
center
justify
Defines the alignment of a heading

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)