EchoEcho.Com
COMPLETE TUTORIALS

HOME TUTORIALS HTML LINKS          

EchoEcho.Com
TOOLS & RESOURCES
 HOME 
 
 TUTORIALS 
 
 RESOURCES 
 
 TOOLS 
 
 DOCUMENTATION 
 
 NEWS 
 
 SITEMAP 

 
  SEARCH THIS SITE

Tell a friend about this site
SUGGEST THIS SITE      

HTML Links


INTRODUCTION

HOW TO MAKE A LINK

COLORS ON TEXTLINKS

LINK TARGETS

NO UNDERLINE

ADVANCED TEXTLINKS

IMAGE LINKS

IMAGE MAPPING

LINK WITHIN A PAGE

LINKS IN FRAMESETS

LINK TO NEW WINDOW

HTML Links :
LINK WITHIN A PAGE

Linking to anchors is very similar to normal links that always points to the top of pages.

A # in front of a link-location specifies that the link is pointing to an anchor on a page. (Anchor meaning a specific place in the middle of your page).

To link to an anchor you need to
  • 1) Create a link pointing to the anchor, and


  • 2) Create the anchor itself.


An anchor is created using the <a>-tag.
If you want to create an anchor called chapter4, you simply add this line where you want the anchor to be:

<a name="chapter4"></a>


After doing this, you can make a link pointing to the anchor using the normal <a href>-tag, like this:

Click <a href="#chapter4">here</a> to read chapter 4.


Note
When linking to an anchor on a page you need to put a # in front of the anchor.


When you link to an anchor on the same page, simply enter

<a href="#YourAnchor">blabla</a>



When you link to anchors on external pages use this syntax:

<a href="http://www.yahoo.com#YahoosAnchor">blabla</a>






Usually anchors are used when you create pages with considerable amounts of text. You would typically make an index at the top of the page linking to the anchors that has been added to key-places in the text that follows.



<< PREVIOUS
READ MORE >>


IN THIS SECTION


HTML BASICS

TEXT

LISTS

IMAGES

LINKS

BACKGROUNDS

TABLES

FRAMES

FORMS

METATAGS

HEXCOLORS




EchoEcho.Com
COMPLETE TUTORIALS
 HOME 
 
 TUTORIALS 
 
 RESOURCES 
 
 TOOLS 
 
 DOCUMENTATION 
 
 NEWS 
 
 SITEMAP 

EchoEcho.Com
TOOLS & RESOURCES


(c) Copyright 1998-1999 NetKontoret - All Rights Reserved         Last modified on: 09/18/1999 01:36:05