Link (HTML element)

From Wiki @ Karl Jones dot com
Jump to: navigation, search

In HTML, the link element allows authors to link their document to other resources, such as an external style sheet.

Not to be confused with hyperlink, which is represented by the a element.

Examples

Example of linking to an external style sheet:

<link href="example.css" rel="stylesheet">

Example of linking to several external style sheets: a default sheet, and alternate sheets which the user can select from the browser options:

<link href="default.css" rel="stylesheet" title="Default Style">
<link href="fancy.css" rel="alternate stylesheet" title="Fancy">
<link href="basic.css" rel="alternate stylesheet" title="Basic">

See also

External links