Free Web space and hosting from freehomepage.com
Search the Web


HOME
BASIC TUTORIAL
What is Html?
Sample Web Page
Basic Tags
Character Entities
Html Links
Frames
Tables
Lists
Forms
Images
Backgrounds
APPENDIX
Html Tag List

Html Links

A link is used to connect to another document on the web. A html link is called a hyperlink. The tag for a link is <a>. It is called an anchor tag, and it can point to anything on the web. Use the attribute href to address the document being linked to. The words between the opening and closing tag is displayed as the hyperlink.
<a href=”home.htm”>Go to the home page.</a>

The line above would look like this:
Go to the home page.
The target attribute is used to define where a linked document will be opened. The following line will open up the document in a new window:
<a href=”home.htm” target=”_blank”>Go to home in a new window.</a>

The
name attribute is used to create a named anchor. Using a named anchor, you can create a hyperlink that goes to a specific spot on a page. Named anchors are not displayed in any special way.
<a name=”here”>Here is here.</a>

The attribute is
name=”label”.
To create a link to a named anchor, just add a
# symbol
<a href=”www.here.com#here”>Go to here.</a>
and the name of the anchor to the end of the URL.
To go to a named anchor from within the document, just put
# and the name of the anchor.
<a href=”#here”>Go to here.</a>

To learn how to create frames, click on “next”.

Much of what I learned to create this tutorial I found on www.w3schools.com.
Back to Top
Lewisville Middle School-2003