Summary


The <a> tag is what makes hypertext "hyper." With it, you can create clickable links between pages, as well as links to specific anchor points on any page. This hour focused on creating simple links to other pages using either relative or absolute addressing to identify the pages.

You learned that when you're creating links to other people's pages, it's important to include the full Internet address of each page in an <a href> tag. For links between your own pages, include just the filenames and enough directory information to get from one page to another.

Table 3.1 summarizes the <a> tag discussed in this hour.

Table 3.1. HTML Tags and Attributes Covered in Hour 3

Tag/Attribute

Function

<a></a>

With the HRef attribute, creates a link to another document or anchor.


Attributes

HRef="address"

The address of the document or anchor point to link to.

target="_blank"

Opens the linked page in a new browser window but doesn't conform to XHTML requirements (there is a JavaScript workaround).





SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net