This hour has shown you two uses for the <a> tag not covered in Hour 3. You learned how to create named anchor points within a page and how to create links to a specific anchor. You also saw how to link to your email address so that readers can easily send you messages. You even learned how to protect your email address from spammers. The hour concluded by showing you how to link to Wikipedia encyclopedia topics from your own pages. Table 6.1 summarizes the two attributes of the <a> tag discussed in this hour. Table 6.1. HTML Tags and Attributes Covered in Hour 6Tag/Attribute | Function |
---|
<a>…</a> | With the href attribute, creates a link to another document or anchor; with the name attribute, creates an anchor that can be linked to. |
Attributes |
---|
href="address" | The address of the document or anchor point to which to link. | docEmphasis">name" | The name for this anchor point in the document. | |