Lesson 3:

Anchors and multiple tags

Link tags look like this: <a></a>. They are called "anchor" tags. They are used for linking text and images to other documents on the internet or to spots within the same document.

When linking to other documents the attribute "href" is used. An attribute is something that goes inside a tag to make it do something beyond what it is meant to do.
Example:
<a href="http://www.pagedomain.com">This is a link</a>

When linking to another part of a long page the attribute "name" is used. the "name" attribute is placed at the begginning of the section you want to link to. Example:
<a name="sectionname">Text at the beginning of the section</a>











































































































































































































































































To link to the section use the "href" tag. like this:
<a href="#sectionname">Click here to go to the section. at the top of the page demonstrating the name attribute.</a>


Using Multiple Tags:

<b><i><u>When using multiple tags like this always close the last tag first and work out in that way.</u></i></b>
Any questions on anything said in this lesson? Visit Sharpened.net to learn what it means!

Go back to Lesson 2 :: Move on to lesson 4