HTML » Tags » link

Version: 2.0, 3.2, 4.0

Compability: Explorer 4, 5  Netscape 4, 6

Syntax:
<link>

The <link> tag is used to establish a relationship between the current document and one or more other related documents.

For example, if you have a Cascading Style Sheets .css file that defines the style for an entire web site, then each file in the site would be linked to the .css file using the link tag.

This tag can be used more than once (i.e., one link per tag). Each occurrence of this tag must be placed inside the head element. A value for the href attribute is required.
 
There is no closing tag.
 

Examples

Code:
<head>
<link rel="stylesheet" type="text/css" href="include/StylesDefinitions.css">
<link rev="relation" href="http://www.fly-by-day-computing.com">
<title> Fly-By-Night-Computing </title>
</head>
Explanation:

This example demonstrates the code for creating two different types of links.

Language(s): HTML

See Also: