General Info
BrightSite
bright.net Homepage
 

Graphics HTML Help

How to Add Images and Backgrounds to your page


Please Note: All of these instructions are assuming that you
have taken the graphics and uploaded them to your web space.
To get them to your directory you must FTP the files.

Graphics

Adding images is easy.
The following example adds a local graphic :



<img src="brightnet.gif"> bright.net main web page

This example is a linked graphic from another internet location:

<img src="http://www.bright.net/brightnet.gif""
> bright.net main web page

This example is a graphic link, or a button that the user clicks on that takes them to a different location. Click on the picture to go to www.bright.net

<a href="http://www.bright.net"><img src="brightnet.gif" border="0" >bright.net main web page



Change the link to mailto: along with a valid email address and the user can click on the graphic to send a pre-addressed email message. Click on the picture to send an email through your default mail client:

<
a href="mailto:username@bright.net"><img src="brightnet.gif" border="0"> bright.net main web page




Image Tags

A very simple way, I suggest this for beginners.

<IMG SRC="nameofimage.gif">

Where "nameofimage" is, you put the name of the image that you have.

Alternative way to put Images on your page.

Alternative text instead of a graphic. This text is shown if the user has graphics turned off, or it's a text-based browser like Lynx. Example:
<IMG SRC="nameofimage.gif" ALT="Click here to go to The Icon Depot">


Height and Width Tags
  • Specifies the height and width of the image. If the real height and width are specified, it loads faster than one without the dimensions, because the browser doesn't have to calculate it after downloading. Example:
    <IMG SRC="icondepo.gif" WIDTH=75 HEIGHT=150>

  • The height and width doesn't have to be it's real values. For example, if I wanted a smaller signature-type footer that's the same as my header, I could use the same image, only the height and width would be specified smaller (and thus would be faster). Example:
    <IMG SRC="nameofimage.gif" WIDTH=28 HEIGHT=100>


    Align Images
    • left or right - aligns to the side and wraps the text above, around, and below it.
    • top - aligns with the tallest item available.
    • texttop - aligns with the tallest text character available.
    • middle - aligns the baseline of the current line with the middle of the image
    • absmiddle - aligns the middle of the current line with the middle of the image.
    • baseline - aligns the bottom of the image with the baseline of the current line.
    • bottom - aligns the bottom of the image with the baseline of the current line.
    • absbottom - aligns the bottom of the image with the bottom of the current line. Example:

    <IMG SRC="nameofimage.gif" ALIGN=RIGHT WIDTH=40 HEIGHT=125>






Border around Graphic

  • Specifies the Border thickness in pixels, including 0. This is also useful for images that are links, with no border. Example:
    <IMG SRC="nameofimage.gif" WIDTH=50 HEIGHT=125 BORDER=0>

Vertical Space and Horizonal Space Around Graphic

  • Specifies vertical and horizontal space around the image. This is useful for aligned images so the text will be a little padded and not wrap against the image. Example:
    <IMG SRC="nameofimage.gif" ALIGN=RIGHT WIDTH=40 HEIGHT=125 VSPACE=5 HSPACE=5>
<>How to add a Background or bacground color to your page
  • To add a background image to your page, do the following:
    <HTML>
    <TITLE>My Homepage</TITLE>
    <HEAD>
    <BODY BACKGROUND="nameofimage.gif">
    This is how your page should look from the top to where you add your background tag.
    In the above example your background could also be a jpg file and not a gif.
  • To add a background color to your page, do the following:
    <HTML>
    <TITLE>My Homepage</TITLE>
    <HEAD>
    <BODY BGCOLOR="#FFFFFF">
    This is how your page should look from the top to where you add your background tag.
    In the above example your background color is white but could be any of these below

RGB Colors


Did you ever wonder how to get those colors into your HTML text or use a color for a background? Well, here is how to do it. You will find the hexidecimal colors below.
<font color=#RRGGBB>
Text to be colored</font>
or for backgrounds <body bgcolor=#FFFFFF>

Here is a table of the 216 "safe" colors that can be used and viewed on just about every monitor on the web.

The number in parenthesis that you see in each block below are the HEXADECIMAL numbers for the RGB codes that make up that color. These numbers are in the format of (RED) (GREEN) (BLUE). For use with the countdown program, they should be used as "RRGGBB". For example, the third color on the top row would be written as "000066".

(00) (00) (00) (00) (00) (33) (00) (00) (66) (00) (00) (99) (00) (00) (CC) (00) (00) (FF)
(33) (00) (00) (33) (00) (33) (33) (00) (66) (33) (00) (99) (33) (00) (CC) (33) (00) (FF)
(66) (00) (00) (66) (00) (33) (66) (00) (66) (66) (00) (99) (66) (00) (CC) (66) (00) (FF)
(99) (00) (00) (99) (00) (33) (99) (00) (66) (99) (00) (99) (99) (00) (CC) (99) (00) (FF)
(CC) (00) (00) (CC) (00) (33) (CC) (00) (66) (CC) (00) (99) (CC) (00) (CC) (CC) (00) (FF)
(FF) (00) (00) (FF) (00) (33) (FF) (00) (66) (FF) (00) (99) (FF) (00) (CC) (FF) (00) (FF)
(00) (33) (00) (00) (33) (33) (00) (33) (66) (00) (33) (99) (00) (33) (CC) (00) (33) (FF)
(33) (33) (00) (33) (33) (33) (33) (33) (66) (33) (33) (99) (33) (33) (CC) (33) (33) (FF)
(66) (33) (00) (66) (33) (33) (66) (33) (66) (66) (33) (99) (66) (33) (CC) (66) (33) (FF)
(99) (33) (00) (99) (33) (33) (99) (33) (66) (99) (33) (99) (99) (33) (CC) (99) (33) (FF)
(CC) (33) (00) (CC) (33) (33) (CC) (33) (66) (CC) (33) (99) (CC) (33) (CC) (CC) (33) (FF)
(FF) (33) (00) (FF) (33) (33) (FF) (33) (66) (FF) (33) (99) (FF) (33) (CC) (FF) (33) (FF)
(00) (66) (00) (00) (66) (33) (00) (66) (66) (00) (66) (99) (00) (66) (CC) (00) (66) (FF)
(33) (66) (00) (33) (66) (33) (33) (66) (66) (33) (66) (99) (33) (66) (CC) (33) (66) (FF)
(66) (66) (00) (66) (66) (33) (66) (66) (66) (66) (66) (99) (66) (66) (CC) (66) (66) (FF)
(99) (66) (00) (99) (66) (33) (99) (66) (66) (99) (66) (99) (99) (66) (CC) (99) (66) (FF)
(CC) (66) (00) (CC) (66) (33) (CC) (66) (66) (CC) (66) (99) (CC) (66) (CC) (CC) (66) (FF)
(FF) (66) (00) (FF) (66) (33) (FF) (66) (66) (FF) (66) (99) (FF) (66) (CC) (FF) (66) (FF)
(00) (99) (00) (00) (99) (33) (00) (99) (66) (00) (99) (99) (00) (99) (CC) (00) (99) (FF)
(33) (99) (00) (33) (99) (33) (33) (99) (66) (33) (99) (99) (33) (99) (CC) (33) (99) (FF)
(66) (99) (00) (66) (99) (33) (66) (99) (66) (66) (99) (99) (66) (99) (CC) (66) (99) (FF)
(99) (99) (00) (99) (99) (33) (99) (99) (66) (99) (99) (99) (99) (99) (CC) (99) (99) (FF)
(CC) (99) (00) (CC) (99) (33) (CC) (99) (66) (CC) (99) (99) (CC) (99) (CC) (CC) (99) (FF)
(FF) (99) (00) (FF) (99) (33) (FF) (99) (66) (FF) (99) (99) (FF) (99) (CC) (FF) (99) (FF)
(00) (CC) (00) (00) (CC) (33) (00) (CC) (66) (00) (CC) (99) (00) (CC) (CC) (00) (CC) (FF)
(33) (CC) (00) (33) (CC) (33) (33) (CC) (66) (33) (CC) (99) (33) (CC) (CC) (33) (CC) (FF)
(66) (CC) (00) (66) (CC) (33) (66) (CC) (66) (66) (CC) (99) (66) (CC) (CC) (66) (CC) (FF)
(99) (CC) (00) (99) (CC) (33) (99) (CC) (66) (99) (CC) (99) (99) (CC) (CC) (99) (CC) (FF)
(CC) (CC) (00) (CC) (CC) (33) (CC) (CC) (66) (CC) (CC) (99) (CC) (CC) (CC) (CC) (CC) (FF)
(FF) (CC) (00) (FF) (CC) (33) (FF) (CC) (66) (FF) (CC) (99) (FF) (CC) (CC) (FF) (CC) (FF)
(00) (FF) (00) (00) (FF) (33) (00) (FF) (66) (00) (FF) (99) (00) (FF) (CC) (00) (FF) (FF)
(33) (FF) (00) (33) (FF) (33) (33) (FF) (66) (33) (FF) (99) (33) (FF) (CC) (33) (FF) (FF)
(66) (FF) (00) (66) (FF) (33) (66) (FF) (66) (66) (FF) (99) (66) (FF) (CC) (66) (FF) (FF)
(99) (FF) (00) (99) (FF) (33) (99) (FF) (66) (99) (FF) (99) (99) (FF) (CC) (99) (FF) (FF)
(CC) (FF) (00) (CC) (FF) (33) (CC) (FF) (66) (CC) (FF) (99) (CC) (FF) (CC) (CC) (FF) (FF)
(FF) (FF) (00) (FF) (FF) (33) (FF) (FF) (66) (FF) (FF) (99) (FF) (FF) (CC) (FF) (FF) (FF)

Downloadable Color Chart (for use offline)



How to make an Image Clickable

Below is an example of a clickable image with a border of 4 pixels:


Html to include an image as clickable is below
<a href="nameoffile.htm"><IMG SRC="nameofimage.gif"></a>


Below is an example of a clickable image without a border.

Html to include an image as clickable without a border.
<a href="nameoffile.htm"><IMG SRC="nameofimage.gif"BORDER="0"></a>


Html to include an image as clickable to go to another site.
<a href="http://www.nameofsite.com/nameofdir"><IMG SRC="nameofimage.gif"BORDER="0"></a>
In the above examples nameoffile is the name of the page you want the image to bring up (link to).




Animated Graphics

To include an animated graphic on your page take the graphic just like any non-animated graphic and put the animation on your page the exact same way. That's all there is to it.


I hope this page explains how to put graphics and backgrounds on your page. For beginners I would use the basic tag for Images and the background tag. I have tried to make this as understandable as I could. If you would like to see any other instructions here feel free to tell me what instructions you would like added.

 



BRIGHT, BRIGHT.NET,, BRIGHTSITE, and MY MAIL, are trademarks of CNI and may not be used without permission.