One-Hour HTML Tutorial

Lesson 2: Formatting Text

The four basic text attributes are:

    <B></B>    - Bold
    <I></I>    - Italic
    <U></U>    - Underline
    <TT></TT>  - TeleType - a fixed width attribute

To use them, place tags around text: (see Example 4)

    <HTML>
    <HEAD>
    <TITLE>Example 4</TITLE>
    </HEAD>
    <BODY>
    <P>HTML is Easy To Learn.</P>
    <B>bold</B><BR>
    <I>italic</I><BR>
    <U>underline</U><BR>
    <TT>teletype</TT><BR>
    </BODY>
    </HTML>
TIP:
attributes may be combined by nesting them.
<B><I>combined</I></B> gives you combined

Font attributes are defined with the <FONT></FONT>tags. They are:

    FACE  - arial, times, courier, wingdings, etc...
    SIZE  - 1 through 7 or +2,+1,-1,-2
    COLOR - red, green, blue, yellow, brown, black, white, etc...
Example:
<FONT FACE=arial SIZE=5 COLOR=purple>example<FONT>
example

by Robert Dolores