Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML link definition

Browser support
IEFFOpSaf
PartialPartialPartialPartial

Type: empty element

Syntax

<link />

Description

Defines a link between two documents.

Attributes

Attribute Description
charset Defines the character set.
href = url The target.
hreflang = language code Defines the character set.
media

Defines what media will be used to display the document.

[ screen | tty | tv | projection | handheld | print | braille | aural | allCharset ]

rel

Defines the relationship beetween this document and the target document.

[ alternate | appendix | bookmark | chapter | contents | copyright | glossary | help | home | index | next | prev | section | start | stylesheet | subsectionCharset ]

rev

Defines the relationship beetween the target document and this document.

[ alternate | appendix | bookmark | chapter | contents | copyright | glossary | help | home | index | next | prev | section | start | stylesheet | subsectionCharset ]

target

Where to open URL.

[ _blank, _self, _top, _parentCharset ]

type MIME  type (example: image/gif or text/css).

Common attributes

Example

[Try this example yourself]
<head>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>

Output

  • Comments

No comments added.