HTML Tutorials - Headers
In HTML Headings help in defining the format and structure of your document, help define the hierarchy and the structure of a web page. The tags used to open and close heading is
<H1></H2>.
There are six levels of headings in HTML specified by <H1>, <H2>, <H3>, <H4>, <H5> and <H6> tags. The outputs of these in a browser are as follows:
Example:
<H1>Heading One</H1>
<H2> Heading Two </H2>
<H3> Heading Three </H3>
<H4> Heading Four</H4>
<H5> Heading Five </H5>
<H6> Heading Six </H6>
The output in Internet Explorer after saving your file would be:

A line space automatically is inserted before and after a heading
The <H#> tag may contain within it an alignment parameter as part of the command:
"LEFT" (the default) aligns the heading with the left margin of the page.
"CENTER" centers the heading horizontally on the page.
"RIGHT" aligns the heading with the right margin of the page.
A perfect example of this would be:
| <H1 align="Center">First Header...</H1> |

That’s it on the basics of headers in html.
![]() |
