HTML Primer
Manipulating Fonts
- To specify a font face, type:
<FONT FACE="Comic Sans MS">Comic Sans MS font face</FONT>
result: Comic Sans MS font face
- To change the size of the font using values between 1 and 7 (default unspecified size is 3), type:
<FONT SIZE=4>size 4</FONT>
result: Size 4
Another alternative is to type one or more of:
<BIG>BIG font</BIG>
result: BIG font
Yet another alternative, using "+" for larger and "-" for smaller, type:
<FONT SIZE=-1>tiny font</FONT>
result: tiny font
- To change the color of the font, type:
<FONT COLOR=Green>Green</FONT>
result: Green
Or to use a color's hexadecimal code, type:
<FONT COLOR=FF0000>Red</FONT>
result: Red
Making Hyperlinks
- To make a link that opens in a new browser window, type:
<A HREF="http://name-of-link.com/htm/etc" TARGET=_blank>The Link</A>
result: The Link
- To make a link that is not underlined, type:
<A HREF="http://name-of-link.com/htm/etc" STYLE="TEXT-DECORATION:NONE">The Link</A>
result: The Link
Or to make all links not underlined in one page type this command at the top of your document:
<HEAD>
<STYLE>
<!--
A{TEXT-DECORATION:NONE}
-->
</STYLE>
</HEAD>
- To make a link using an image:
<A HREF="http://name-of-link.com/htm/etc"><IMG SRC="http://name-of-image.jpg/gif/etc" BORDER=0></A>
result:
Miscellaneous
- To display an image, type:
<IMG SRC="name-of-the-image.jpg/gif/etc">
result:
- To boldface words, type:
<B>Bold</B>
result: Bold
- To italicize words, type:
<I>Italic</I>
result: Italic
- To underline words, type:
<U>Underlined</U>
result: Underlined
- To make words blink (only works with Netscape Navigator browser), type:
<BLINK>Blinking</BLINK>
result: