One-Hour HTML Tutorial

Lesson 7: Formatting Pages

Pages can be formatted by using different attribute within the <BODY> tag near the beginning of the HTML page after the </HEAD> tag. They can be:

    BGCOLOR    - Color of your HTML page
    BACKGROUND - Graphic file which makes your page's background
    TEXT       - Color of your normal text
    LINK       - Color of linked text
    VLINK      - Color of linked text whose link has been read
    ALINK      - Color of linked text when clicked

The following page has a black background with yellow text, blue linked text, green read linked text and white clicked link text. (see Example 5)

    <HTML>
    <HEAD>
    <TITLE>Example 5</TITLE>
    </HEAD>
    <BODY BGCOLOR=black TEXT=yellow LINK=blue VLINK=green ALINK=white>
    HTML is Easy To Learn.<BR>
    Welcome to your <A HREF=ex01.html>first page</A>.
    </BODY>
    </HTML>

The next page is the same as above but uses a textured background file. (see Example 6)

    <HTML>
    <HEAD>
    <TITLE>Example 6</TITLE>
    </HEAD>
    <BODY BACKGROUND=a14.jpg TEXT=yellow LINK=blue VLINK=green ALINK=white>
    HTML is Easy To Learn.<BR>
    Welcome to your <A HREF=ex01.html>first page</A>.
    </BODY>
    </HTML>

 


by Robert Dolores