

| 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.
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:
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.
The attribute is name=label. To create a link to a named anchor, just add a # symbol
To go to a named anchor from within the document, just put # and the name of the anchor.
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