link href Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:link

Description

The href attribute specifies the location (URL) of the external resource.

Attribute Values

Value Description
URL The URL of the linked resource/document.

The following code shows how to Link to an external stylesheet:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="your styles.css">
</head><!--from  w w  w.j a v a 2s  .  c  o  m-->
<body>

<h1>I am formatted with a linked style sheet</h1>
<p>Me too!</p>

</body>
</html>

Related Tutorials