link type Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:link


The type attribute specifies the Internet media type or MIME type of the linked document/resource.

Attribute Values

Value Description
media_type The Internet media type of the linked document.

In the following example, the type attribute indicates that the linked document is an external style sheet:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head><!--  w  w  w .j a va 2s.  co m-->

<h1>I am formatted with a linked style sheet</h1>


Related Tutorials