HTML Help & Resources
LINK Relationships
The most common use of the LINK tag is with Cascadding Style Sheets. This allows browsers to load an external style reference into the document for use with the display or media property. External stylehsheets allow you to make common styles portable, able to insert various different styles in any documents you choose.
One of the unique features of linking stylesheets is the media property, which is set to screen by default, but you can determine different styles, and relate them to different media. By choosing media=print , this tells browsers to apply, perhaps, a completely different style when the document is printed. For instance, you may want to choose different fonts, colors or spacing to accomodate printed media.
The elements of style, and how to use them, are not covered in this reference. For more information on how to utilize the power of cascadding style, visit our CSS reference instead.
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>My First HTML Document</TITLE>
<META NAME="Description" CONTENT="This is my first HTML document">
<META NAME="Keywords" CONTENT="first,html,document">
<META NAME="Robots" CONTENT="index,follow">
<META NAME="Date" CONTENT="Mon, 21 May 2012 08:32:05 GMT">
<META NAME="Author" CONTENT="John Doe">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="Expires" CONTENT="Mon, 21 May 2012 09:32:05 GMT">
<META HTTP-EQUIV="Refresh" CONTENT="10; URL=http://www.re-directed.com/url.html">
<LINK REL="StyleSheet" HREF="mystyle.css" TYPE="text/css" MEDIA="screen">
</HEAD>
<BODY>
This is my first HTML document.
Sending you to my second HTML document...
If this page does not refresh in 10 seconds, go to second HTML document .
</BODY>
</HTML>
REL defines the relationship. HREF defines the location of the reference. TYPE defines the link characteritics. MEDIA defines how the reference is displayed.
Valid parameters for MEDIA: screen, print, aural, tv, tty, projection, handheld, braille, all. For detailed information on the use of each form of media, visit http://www.w3.org .
Of course, there are others uses for LINK relationships, however, we only cover the most common, or most used, elements of HTML programming. If you have specific inquiries about the LINK element, visit http://www.w3.org .
Move on to the Next Topic - Cascadding STYLE Elements.