HTML Tutorial Chapter 2

Posted On 2009-02-08 by FortyPoundHead
Tags: Webmaster Related Tutorial 
Views: 1532


Headings are some of the most important tags within the BODY of your HTML document. You will usually use a heading to tell what the following section of your page is about. The opening tag for a heading is <hy> and the closing tag is </hy> with y being the size of the heading... from 1 to 6. (1 being largest, and 6 being smallest)

Example of heading tags...

H1: Bob fell over the chicken.

<h1>H1: Bob fell over the chicken.</h1>

H2: Bob fell over the chicken.

<h2>H2: Bob fell over the chicken.</h2>

H3: Bob fell over the chicken.

<h3>H3: Bob fell over the chicken.</h3>

H4: Bob fell over the chicken.

<h4>H4: Bob fell over the chicken.</h4>

H5: Bob fell over the chicken.

<h5>H5: Bob fell over the chicken.</h5>

H6: Bob fell over the chicken.

<h6>H6: Bob fell over the chicken.</h6>

Horizontal Ruled Lines...

Horizontal Ruled Lines are used to separate different areas of a web page. The tag for a horizontal ruled line is <hr>. The horizontal ruled line DOES NOT have a closing tag. You may also add certain attributes to the <hr> tag, such as WIDTH=n (for fixed pixel width) or WIDTH=n% for a certain percentage of the screen wide, SIZE=n to make the line a certain pixel amount thick, and NOSHADE to turn the line's shading off. A plain <hr> with no attributes will make the line the full width of the screen.

Example of horizontal ruled lines...

<hr width=50>

<hr width=50%>

<hr size=7>

<hr noshade>

You may also use several attributes within one tag...

<hr width=50% size=10 noshade>

About the Author

FortyPoundHead has posted a total of 1974 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Recent Forum Posts

Advanced search added
dwirch posted on September 23, 2017 at about 13:44 in Site News

Job Spammer: Gaurav Mehta - AgreeYa Solutions
dwirch posted on September 22, 2017 at about 10:35 in Spammers

Job Spammer: Prutha Siri - Javelin Systems
dwirch posted on September 10, 2017 at about 6:15 in Spammers

New security implemented
dwirch posted on September 7, 2017 at about 7:16 in Site News

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers