Since the internet is all about information, text plays a pretty important role in a web-site. It's no wonder that it is one of the most versatile tags in HTML.
You can change the text size, the color, the typeface and the text attributes (bold, italic, underline, etc). This is needed because you most likely want to emphasize certain sections of your homepage, or make a title or header bigger than the default text.
Italic
<i>sample text</i>
sample text
DESCRIPTION: This tag rotates the text slightly; it's used to emphasize certain words.
Bold
<b>sample text</b>
sample text
DESCRIPTION: This tag makes the test stronger; also used to emphasize certain content.
Underline
<u>sample text</u>
sample text
DESCRIPTION: This tag underlines the text; since most web-sites use underlined text as links, this tag is not recommended to be used too much.
Strike Out
<s>sample text</s>
sample text
DESCRIPTION: This tag crosses out text. I've never used it myself, since I have a key called "BACKSPACE" on my keyboard...
Subscript
<sub>sample text</sub>
normal text sample text
DESCRIPTION: This tag makes the text smaller and positions it lower than than normal text.
Superscript
<sup>sample text</sup>
normal text sample text
DESCRIPTION: This tag makes the text smaller and positions it higher than than normal text.
Font Color
<font color=red>sample text</font>
sample text
DESCRIPTION: This tag changes the color of the text. Instead of red you can use any color you can think of. You may also use a six digit color code if you really want a specific color.
Center
<center>sample text</center>
sample text
DESCRIPTION: This tag centers the text, but not only that. It also works on images, tables and pretty much everything else.
Font Face
<font face="Arial">sample text</font>
sample text
DESCRIPTION: This tag changes the font style of the text. You can replace Arial with every other font you have. Keep in mind that if you put the page on the web and a viewer doesn't have the font you used, the text will display in the browser's default font.
Of corse, most of these tags can be combined, so you can give your fonts various attributes at once. This can result in some neat effects if you plan it carefully. Below is an example of such a combination.
<center><font face="Arial" color="white" size=3><b><i>Hello World!</i></b></font> will show up as:
Hello World!
As you can see, some of the attributes explained on this page were combined to create an unique font that can be used as a header or a title. One thing to keep in mind when doing this is to close the tags, to avoid having the whole page displaying the same.
Featured Screensaver Living Aquarium
Enjoy the calm serenity of our new Living Marine Aquarium Screensaver. Watch as the beautiful tropical fish swim realistically around a beautiful aquarium! Free for everybody!