Приглашаем посетить
Мамин-Сибиряк (mamin-sibiryak.lit-info.ru)

XHTML Links

Previous Page
Table of Contents
Next Page

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>.



Previous Page
Table of Contents
Next Page