Setting Link Information (<link>)

You use the XHTML <link> element to indicate the relationship of other documents to the current one, such as specifying an external style sheet. This element is empty and goes in the <head> section of a document. This element is supported in XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. Here are the attributes of <link>:

AttributeDescription
charsetSpecifies the character encoding of the linked document. Set this to an RFC 2045 language character set string; the default value is ISO-8859-1.
classGives the style class of the element.
dirSets the direction of directionally neutral text. You can set this attribute to ltr, for left-to-right text, or rtl, for right-to-left text.
hrefContains ...

Get Inside XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.