132 Chapter 8 – Creating Links
Summary of Tags Related to Linking
Web Design in a Nutshell, eMatter Edition
type=MIME type
Specifies the content type (MIME type) of the defined content.
Link Examples
To a local file:
<A HREF="filename.html">...</A>
To an external file:
<A HREF="http://server/path/file.html">...</A>
To a named anchor:
<A HREF="http://server/path/file.html#fragment">...</A>
To a named anchor in the same file:
<A HREF="#fragment">...</A>
To send an email message:
<A HREF="mailto:username@domain">...</A>
To a file on an FTP server:
<A HREF="ftp://server/path/filename">...</A>
<area> NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<area>
Theareatag is used within the<map>tag of aclient-side imagemapto define a
specific “hot” (clickable) area. Client-side imagemaps are discussed later in this
chapter.
Attributes
coords=values
Specifies a list of comma-separated pixel coordinates that define a “hot” area
of an imagemap. The specific syntax for the coordinates varies by shape (see
the “Imagemaps” section later in this chapter).
href=url
Specifies the URL for a specific area.
nohref
Defines a “mouse-sensitive” area in an imagemap for which there is no action
when the user clicks in the area.
shape=rect|rectangle|circ|circle|poly|polygon
Defines the shape of the clickable area.
<map> NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<map>...</map>
Encloses client-side image map specifications. Client-side imagemaps are discussed
later in this chapter.