This article is the September contest winner. The author provides a basic tutorial of HTML, with code samples illustrating headings, lists, background colors, using the Frame tag and more.
HTML Tutorial - Drawing Lines, SUB and SUP Tags (Page 11 of 12 )
}
You can draw a Horizontal line by making use of <HR> tag. Its attributes include bgcolor and size. Listing 27 shows its usage:
Listing 27
<HR bgcolor = “yellow” size = “10”> Using Address tag
Suppose, if you want to give your contact information on a web page, you can make use of <ADDRESS></ADDRESS> tag. It displays the texts in its own font. Hence, there is no need for you to format the texts separately.
Listing 28
<ADDRESS>Microsoft Inc, Washington, USA</ADDRESS>
Using <SUB> tag
This tag stands for subscript. The basic functionality of this tag is that it lowers the texts between the tag.
Listing 29
H<SUB>2</SUB>O
Using <SUP> tag
This tag stands for superscript and it raises the texts between the tag as shown in Listing 30.
Listing 30
2<SUP>3</SUP> = 8
Applying Fonts
You can change the appearance of your text using <FONT> tag. Its attributes are face, size and color. Face attribute accepts font names like Arial, Courier, Verdana and etc. Size accepts values from 1 to 7 while color specifies the font color.
Listing 31
<FONT face = “Verdana” size = “3” color = “blue”> This text will display in blue color </FONT>