DiamondLime.com

 
 

Free HTML Tutorial - Headers

Today’s tutorial will show you how to create headers in an HTML file.

What are Headers?

Headers are a great way to break up text into logical divisions. They go well between each of your main ideas.

Different Kinds of Headers

There are headers of varying importance, from 1 (most important) to 7 (least important). Using headers of varying importance helps show your reader how you would prioritize the information you’ve included on your web page.

Header Tags

The opening tag for a header is simply <h#>, where # is a number between 1 and 7.

The closing tag for a header is </h#>, where # is the same number as you put in the opening tag.

Put the text of your header between the two header tags

Here’s a code example:

<h1>Your Header Here</h1>

Which produces:

Your Header Here

<h3>Your Header Here</h3>

This produces:

Your Header Here

Go add some headers to your HTML file that we created in the last tutorial!

One Lonely Response to 'Free HTML Tutorial - Headers'

Subscribe to comments with RSS or TrackBack to 'Free HTML Tutorial - Headers'.

  1. on March 2nd, 2006 at 10:28 am

    […] Now that we can create pages using basic html, create text and headers, and format our text, it would probably be a good idea to learn how to use images. Images, after all, are very important in web design—they convey information, improve your site’s appearance, and add a little spice to your page. […]

Leave a Reply