Tutorial User Guide > Introduction to HTML > Anchors
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Anchors
The real power of the web is to be able to link to another document, another place in the same document, or other type of file such as a graphic or video clip. This is done through a hypertext link defined with an anchor tag <A> and a hypertext reference tag attribute, HREF, which defines the function of the anchor. This example shows an anchor that points to a file called example1.html, with “Example1” as the name of the hyperlink.
<A HREF=”example1.html”>Example1</A>
 
Start the anchor with <A (you must put a space after the A)
Specify the document to link to by entering HREF=”filename”>
Enter the text that will be the name of the hyperlink
Close the anchor tag /A>
Combining what we know of lists and anchors, review the following example:
<UL>
	<LI><A HREF=”apples.html”>Apples</A></LI>
	<LI><A HREF=”oranges.html”>Oranges</A></LI>
	<LI><A HREF=”bananas.html”>Bananas</A></LI>
</UL>
This example would look like the following in a web browser, where each item would be a hyperlink to another HTML document.
Apples
Oranges
Bananas