HTML link

From Htmlpedia
Jump to: navigation, search

!! TODO Make a template for HTML elements !!

You mean like this one?

Html: <link>


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.



  • 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



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


HTML 4.0 spec: