Working with Headings

The following series of tags create document headings akin to those in newspapers and magazines. Headings indicate a subjects level of importance, note that Google robots make use of headings to index and have a impact on your ratings , so use it with care. For example heading 1 is used for main topic, heading 2 should indicate a subtopic and heading 3 should indicate subtopic of heading 2, and so on. The only property of the heading tags is align, however its deprecated and you should be using Cascading Style Sheet (CSS) instead to align text. I recommend you learn CSS as soon as you are done with learning HTML.

The attribute align can have the values, left, right, and center. To align a heading, insert the alignment attribute within the deading tag

<h1 align="center">

To format a word or phrases on a heading, place an opening heading in front of it with its corresponding close tag, below is the code and its resulting phrases

<h1>This is a Heading 1</h1>

This is a Heading 1



<h2>This is a Heading 2</h2>

This is a Heading 2



<h3>This is a Heading 3</h3>

This is a Heading 3



<h4>This is a Heading 4</h4>

This is a Heading 4



<h5>This is a Heading 5</h5>
This is a Heading 5


<h6>This is a Heading 6</h6>
This is a Heading 6