| Index | Basics | Colors | Fonts | Images | Links | Tables |
Links can also be used to direct a browser to a certain area of a web page, useful when alot of information is located on a web page and a user might be intrested in only one part of it. To direct a browser to a certain part of a page You use the <A NAME="***"> and the <A HREF="***"> </A> tags. | ||
The <A NAME="***"> is the Anchor on the page to be linked to in the examples below, the names of colors were used. The code for the first area linked to (red) is written <A NAME="RED">. | ||
Linking to the RED area is done by using the < A HREF="#RED"> </A> tags. If the area You wish to link to is located on another page You simply need to include the page's name in the <A HREF=""> tag, for example the filename of this page is links2.html if we linked to this page from elsewhere and wanted to direct the browser to the blue area You could use... | ||
| ||
Notice the # in the <A HREF="#BLUE"> tag, that tells it to look for a place on the page rather than a file or folder. Follow the links below the color areas to see how You can be placed at a certain part of the page. | ||
<A NAME="RED"> | ||
| This is the Red area | ||
| Red Green Blue Yellow Violet | ||
<A NAME="GREEN"> | ||
| This is the Green area | ||
| Red Green Blue Yellow Violet | ||
<A NAME="BLUE"> | ||
| This is the Blue area | ||
| Red Green Blue Yellow Violet | ||
<A NAME="YELLOW"> | ||
| This is the Yellow area | ||
| Red Green Blue Yellow Violet | ||
<A NAME="VIOLET"> | ||
| This is the Violet area | ||
| Red Green Blue Yellow Violet | ||
Notice how the browser sets the <A NAME="***"> at the top of the page making the area or information linked to easy to find on the screen. |