link href Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:link


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>
  <link rel="stylesheet" type="text/css" href="your styles.css">
</head><!--from  w w  w.j a v a 2s  .  c  o  m-->

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


Related Tutorials