Links


Hyperlinking is fundamental to HTML. These elements enable you to link to other documents.

<a>...</a>

Usage

Used to define links and anchors.

Start/End Tag

Required/Required.

Attributes

%coreattrs, %i18n, %events.

 

charset="..."Character encoding of the resource.

 

name="..."Defines an anchor.

 

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

 

target="..."Determines where the resource will be displayed (user-defined name, _blank [in a new unnamed window], _parent [in the immediate parent frameset], _self [in the same frame as the current document], or _top [in a full browser window that removes the frameset completely]).

 

rel="..."Forward link types.

 

rev="..."Reverse link types.

 

accesskey="..."Assigns a hotkey to this element.

 

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

 

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

 

tabindex="..."Sets the tabbing order between elements with a defined tabindex.

Empty

No.


<base>

Usage

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

Start/End Tag

Required/IllegalSee note for XHTML 1.0 requirements.

Attributes

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

 

target="..."Determines where the resource will be displayed (user-defined name, _blank, _parent, _self, _top).

Empty

Yes.

Notes

Located in the document head. In XHTML 1.0, this tag should take the XML form of <base /> to ensure compatibility with older browsers.


<link>

Usage

Defines the relationship between a link and a resource.

Start/End Tag

Required/IllegalSee note for XHTML 1.0 requirements.

Attributes

%coreattrs, %i18n, %events.

 

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

 

rel="..."The forward link types.

 

rev="..."The reverse link types.

 

type="..."The Internet content type.

 

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

 

target="..."Determines where the resource will be displayed (user-defined name, _blank, _parent, _self, _top).

Empty

Yes.

Notes

Located in the document head. In XHTML 1.0, this tag should take the XML form of <link /> to ensure compatibility with older browsers. Most often used to load external style sheets.





Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

Similar book on Amazon

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