Linking to a local Document

Previous page...

  • The simplest hyperlink jumps to a different document in the same folder or directory on the same computer.

    Using Notepad create two HTM files in the same directory, one named file1.htm and the other file2.htm

  • To enable the user to jump from one document to another an anchor tag is required in file1.htm:

    <AHREF="file2.htm">Highlighted text to appear</A>

    file1.htm

    <HTML>
    <HEAD>
    
    	<TITLE>Simple HTML Document with local links</TITLE>
    	
    </HEAD>
    	
    <BODY>
    			
    You can try out my hyperlink by <A HREF="file2.htm">clicking here...</A>
    	
    </BODY>
    
    </HTML>

    file2.htm

    <HTML>
    <HEAD>
    
    	<TITLE>Target HTML Document</TITLE>
    	
    </HEAD>
    	
    <BODY>
    			
    This is my First ever HYPERLINK!
    	
    </BODY>
    
    </HTML>

    Back to Top of Page

    © 2003 Ashley Preston 

    Computeach International Ltd