header tag:

header tag

header tags are used to create headlines in documents such as title of the page. HTML supports six heading levels <H1>,<H2>,<H3>,<H4>,<H5> and <H6> of which <H1> is the most significant header and it is rendered in a larger font than other five header. Each successive header element is rendered in a smaller font. The text size used to display each header element can vary significantly among browsers. Heading are in bold and larger than the regular text.   Let's take an example:

HTML CODE:

header tag

ON RUNNING IN A WEB BROWSER  :


header tag

In the header tag we can use the align attribute in the heading element to align the text between the headings tags. One can align the headings to left, right or center of  the screen using the LEFT, RIGHT, or CENTER attributes. If no attribute is specified along with the heading tag, it would be left aligned by default. 

HTML CODE:

header tag

ON RUNNING IN A WEB BROWSER  :

header tag

Note: Mostly all the headings till <H3> are only used and beyond that are rarely used.
header tag
header tag
header tag
header tag
header tag
header tag
header tag
header tag
header tag
header tag
header tag
header tag
header tag
header tag
header tag


html heading tag


head tag