Webmaster

you are here: Lycos Home » Lycos Webmaster » References » HTML 4.0 » Links
References : HTML 4.0

 | Index | 
 | Structure | Text paragraphs and phrases | Text formatting | Lists | Links | Tables | Frames | Embedded content | Style | Forms | Scripts | 
 | All tags | 

Links

Hyperlinking of documents is fundamental to HTML. This section presents the elements that allow you to create the links.

<a> | <base> | <link>

<a>...</a>
Allows you to define links and anchors.
 
Starting/ending tag Required/Required
 
Attributes Attributes %coreattrs, %i18n, %events
charset="...": Character encoding of the resource.
name="...": Defines an anchor.
href="...": Linked resource URL.
target="...": Determines where the resource will be displayed (user-defined name), _blank (in a new unnamed window), _parent (in the immediate parent frame), _self (in the current document frame), or _top (in the entire window display area, by deleting the frameset).
rel="...": Forward link types.
rev="...": Reverse link types.
accesskey="...": Assigns a hotkey to this element.
shape="...": Allows you to define client-side image maps using defined shapes (default, rect, circle, poly).
coords="...": Sets the shape size in pixel or percentage lengths.
tabindex="...": Defines the tabbing sequence between element with a tabindex.
 
Empty No
 
Example<a href="folder/page.html">Lien</a>
 
 Top
<base>
All other URLs in the document are resolved in relation to this location.
 
Starting/ending tag Required/Illegal.
 
Attributes Attributes href="...": Linked resource URL.
target="...": Determines where the resource will be displayed (user-defined name, _blank, _parent, _self, _top).
 
Empty Yes
 
Notes Appears in the document head. In XHTML 1.0, this tag should be in the form <base /> to ensure compatibility with older browsers.
 
Example<base href="http://www.microsoft.com/" title="A page from Microsoft's site">
 
 Top
<link>
Defines the relationship between a link and a resource.
 
Starting/ending tag Required/Illegal.
 
Attributes Attributes %coreattrs, %i18n, %events
href="...": Resource URL.
rel="...": Forward link types.
rev="...": Reverse link types.
type="...": Internet content type.
media="...": Defines the destination media (screen, print, projection, braille, speech, all).
target="...": Where the resource will be displayed (user-defined name, _blank, _parent, _self, _top).
 
Empty Yes
 
Notes Appears in the document head. In XHTML 1.0, this tag should be in the form <link /> to ensure compatibility with older browsers.
 
 Top

 | Index | 
 | Structure | Text paragraphs and phrases | Text formatting | Lists | Links | Tables | Frames | Embedded content | Style | Forms | Scripts | 
 | All tags |