Title-HTML.jpg
intro | tags | color | attributes | images | embedding | tables | links | | Exercises: 1.Homepage 2. Website
Need more help? Consult the w3schools.com tutorials

Table of Contents


An Attribute adds "superpowers" to your existing tags. They appear as instructions and values within the angle brackets of their "Host" tag.

ie.
<BODY>
simply defines the start of the BODY area for your webpage

<BODY BACKGROUND="wallpaper01.jpg">
defines the start of the BODY area AND will display a jpg called "wallpaper01.jpg" as a background image for your webpage!

For the record:
BODY is the "Tag"
BACKGROUND is the "Attribute"
WALLPAPER01.JPG is the "Value"

<BODY> has MANY different available attributes to add features to your webpage:
background adds a background image
bgcolor defines the background colour
text defines the default text colour
link, vlink, alink defines the colour of links, visited links, and activated links

<BODY BGCOLOR="#336699"> can also change the background colour of that webpage.
(Note, the "#336699" is called a VALUE being assigned to the BGCOLOR attribute)

Tag
Attribute
Effect
BODY
BGCOLOR
Changes the background colour

TEXT
Changes the TEXT colour

LINK
Changes the LINK colour

VLINK
Changes the colour of Visited Links
FONT
SIZE
Changes the size of the text (values range from 1 to 7)

COLOR
Changes the colour of the text

FACE
Changes the TYPEFACE of the text