Home » Web Development » 03 - Basic HTML Tags and Style Sheets
3
Headings
Overview of the different heading styles in html
The <h1> to <h6> tags format headings. The default alignment of headings is 'Left', but Headings may be center or right aligned using the 'align' attribute as follows:
<h1 align=center>A Center Aligned Heading</h1>
| The Tags | The Effect |
| <h1>Heading 1</h1> |
Heading 1 |
| <h2>Heading 2</h2> |
Heading 2 |
| <h3>Heading 3</h3> |
Heading 3 |
| <h4>Heading 4</h4> |
Heading 4 |
| <h5>Heading 5</h5> |
Heading 5 |
| <h6>Heading 6</h6> | Heading 6 |
As you can see, some of the headings have indents and <h5> is italicized. T These heading formats have been set for this tutorial. Let us use the default <h1> for our document.
<body> <h1>Online Florist - <a href="http://plantanswers.tamu.edu/flowers/flower.html">Flowers</a> For All Occasions</h1> <br><br><br> <hr> </body>