CSCI 110, Spring 2011

Home | | Course Schedule | | Assignments | | Lecture Notes

Writing a Web Page--Hints

Making a clickable image link

Simply use an IMG tag in place of the clickable text:

<A HREF = "http://www.nasa.gov"><IMG SRC = "moon.gif"></A>


Adding a background color

Modify the <BODY> tag to read:

<BODY BGCOLOR = "blue">

The color can be specified as one of the standard colors:

Hexadecimal color notation
Alternatively you can specify colors in Hexadecimal notation, for example:

<BODY BGCOLOR = "#FFFFFF">

<BODY BGCOLOR = "#2277CC">

In this notation, the first 2 digits refer to the amount of red, the second two refer to the amount of blue and the third pair refer to the amount of green in the color.


Saving an image from the web

You can save many images from the web onto your own local drive as follows.