College of Engineering Logo Web Server Logs Student Server Logs Orange bar Main Page General Information Special Events Programs Research Student Information Computer Facility Outreach Xtreme Engineering Jobs Available

Top-Level Tags

These are top-level tags. The HTML tag is optional, and encloses the entire document. There are several attributes for the BODY tag, and they are described in subsequent paragraphs.

Name Purpose Attributes Contents
HTML Document marker none HEAD BODY
HEAD Header information none TITLE
BODY Contents of the HTML file (see below) (see below)

Document Body

Attribute Purpose
ALINK Color for active links
BACKGROUND Image used for background
BGCOLOR Background color of page
LINK Color for unvisited links
TEXT Color of text on page
VLINK Color for visited links

The BODY tag has some optional attributes which are explained here. The BACKGROUND specifies the URL (for an example of a URL, see the A (anchor) tag elsewhere) of an image to be used as a background for the body of the document. The remaining attributes all pertain to color values specified in the form #hhhhhh where h stands for a hexadecimal digit. Each pair of these digits represent red, green and blue values respectively. For example, to make a page with a green background with blue text, the following BODY tag would be used. Be sure to note that exactly one such tag can be used within an HTML document, and the body of document should be closed with a corresponding /BODY tag:

<BODY BGCOLOR="#00ff00" TEXT="#0000ff">
An active link is the name given to the color of a link which the user has currently selected. For example, this is the color of a link which appears when the link is clicked and the mouse is held down. The HTML standard also defines a set of 16 colors which can be used in place of the #hhhhhh format given above. The following colors are the values defined by the standard: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW

Author: Ben Yoshino (ben@wiliki.eng.hawaii.edu)

Comments, Questions? | E-mail: webmaster@wiliki.eng.hawaii.edu


Last updated on Monday, February 05, 2001
Copyright © 2001 University of Hawai`i, College of Engineering, Computer Facility
All rights reserved.