LINKS

Page 2


Text Images Sound Lists Tables
Frames Forms Style Sheets Scripts Links to Other Pages




EXAMPLES


Example 1


LINK 1 (Linking Within a Web Page)


Click here to go to Example 2

How it Works

  1. The code for the above link (ie Click here to go to Example 2) is as follows:

    < A HREF= "#Example 2" >Click here to go to Example 2 </A>

  2. The code for the line where it reads "Example 2" (below) is as follows:

    < A NAME= "Example 2" ><H2>Example 2</H2></A>

Two lines of code are therefore needed to achieve this link.

To see the code for LINK 1, right click anywhere on the screen where there is no text or image, then left click on View Source. Look for <!-- Code for LINK 1 -->




Example 2



LINK 2 (Linking to Another Web Page on the Same Web Site)


Click here to go to the LINKS first page

To see the code for LINK 2, look for <!-- Code for LINK 2 --> in View Source.




Example 3



LINK 3 (Linking to Another Web Page Anywhere in the World)


Click here to go to the Natural History Photographic Agency's web site

To see the code for LINK 3, look for <!-- Code for LINK 3 --> in View Source.




Example 4


LINK 4 (How to Send an Email)


Click here to email your comments

To see the code for LINK 4, look for <!-- Code for LINK 4 --> in View Source.

Return to First Page



Home    Site Map    Assumptions    Introduction    Tools    Resources    Contact