HTML <link> type Attribute
Example
<head>
<link rel="stylesheet" type="text/css" href="demo.css">
</head>
Meaning
The type attribute is used to define the type of the content linked to.
The value of the attribute should be a MIME type, such as text/html, text/css, and so on.
The common use of this attribute is to define the type of style sheet linked, and the most common current value is text/css, which indicates a CSS format.
Standard Syntax
HTML: <link type="mediaType">
XHTML: <link type="mediaType" />
Advertisement
Attribute Values
| Value | Description |
|---|---|
| mediaType | A valid MIME type that destination of the hyperlink. See important list of standard media types. |