XHTML Links


Hyperlinking is fundamental to XHTML. These elements enable you to link to other documents, other locations within a document, or external files.

<a></a>

Usage

Used to define links and anchors.

Start/End Tag

Required/Required.

Attributes

core, i18n, events.

charset="encoding" Character encoding of the resource.

name="name" Defines an anchor.

HRef="linkurl" The URL of the linked resource.

rel="linktype" Forward link types.

rev="linktype" Reverse link types.

shape="value" Enables you to define client-side imagemaps using defined shapes (default, rect, circle, poly).

coords="values" Sets the size of the shape using pixel or percentage lengths.

Empty

No.


<base />

Usage

All other URLs in the document are resolved against this location.

Start/End Tag

Required/Illegal.

Attributes

href="linkurl" The URL of the linked resource.

Empty

Yes.

Notes

Located in the document <head>.


<link />

Usage

Defines the relationship between a link and a resource.

Start/End Tag

Required/Illegal.

Attributes

core, i18n, events.

charset="encoding" The character encoding of the resource.

href="linkurl" The URL of the resource.

rel="linktype" The forward link types.

rev="linktype" The reverse link types.

type="contenttype" The Internet content type.

media="media" Defines the destination medium (screen, print, projection, braille, speech, all).

target="placement" Determines where the resource is displayed (user-defined name, blank, parent, self, top).

Empty

Yes.

Notes

Located in the document <head>.





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