HTML link

From Htmlpedia
Jump to: navigation, search

!! TODO Make a template for HTML elements !!

You mean like this one?

Html: <link>

Description:

The purpose of the tag is to allow HTML authors to associate other documents with the document containing the "link" tag. CSS uses it to link styles sheets to the document.

<link> may only appear in the HEAD section of a document. It may appear any number of times.

Attributes:

Todo

  • id, class : document-wide identifiers
  • lang :language information
  • dir : text direction
  • title : element title
  • style : inline style information
  • onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup : intrinsic events
  • href, hreflang, type, rel, rev : links and anchors
  • target : target frame information
  • media : header style information
  • charset : character encodings

Example:

Good

<link rel="stylesheet" type="text/css" href="mysheet.css" media="all" />

References:

HTML 4.0 spec: http://www.w3.org/TR/html4/struct/links.html#edef-LINK