HTML <link> type Attribute
HTML <link> tag
Example
In the following example, the type attribute indicates that the linked document is a style sheet:
<head>
<link rel="stylesheet" type="text/css" href="theme.css" />
</head> |
Try it yourself »
|
Definition and Usage
The type attribute specifies the MIME type of the linked document.
The most common MIME type for this attribute is "text/css", which describes a style sheet.
Browser Support

The type attribute is supported in all major browsers.
Syntax
Attribute Values
| Value |
Description |
| MIME_type |
The MIME type of the linked document.
Look at IANA MIME types for a complete list of standard MIME types. |
HTML <link> tag
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|