Chapter 2
Common Tags
Headings
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)
Examples 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
Horizantal ruled lines are goopd for seperating thigs. You can change the color, size, and wether or not it'll have 3D shading. The tag for a horizontal ruled line is simple: <hr>. THIS TAG DOES NOT, and I repeat, 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.
Here are some examples of horizontal ruled lines.........
<hr width=50>
<hr width=50%>
<hr size=7>
<hr noshade>
You can also mix things up in a tag..........
<hr width=50% size=10 noshade>
...and add color!!!
<HR ALIGN=CENTER WIDTH="100%" SIZE="2" NOSHADE COLOR="#00FF00">
Your own HTML page
WHAT TO TYPE
(The blue is the new!)
<html>
<head><title>My Home Page</title></head>
<body>
</body>
</html>