HTML Formatting: Headers

Let's again re-open our first.html file and make some more additions.

Add the following sentences above all existing text:


     <h1>A bad HTML Poem</h1> 
     <h2>A bad HTML Poem</h2>
     <h3>A bad HTML Poem</h3>
     <h4>A bad HTML Poem</h4>
     <h5>A bad HTML Poem</h5>
     <center><h6>A bad HTML Poem</h6>
     
Now, view the page in your browser and then return to this screen.

Your page should have looked like this sample page.

Notice that the descending sizes of the headings created by the <h1> through <h6> tags, while the <center> tag causes the text to be centered. However, without a </center> tag, all the text after the <center> tag is centered.

Index of topics next topic: Color