link type Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:link

Description

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>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head><!-- w  w w  .j  av a 2 s.  com-->
<body>

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


</body>
</html>

Related Tutorials