Easy Tutorial
❮ Tag Output Tag Iframe ❯

HTML <link> href Attribute

HTML <link> Tag

Example

Link to an external stylesheet:


Browser Support

All major browsers support the href attribute.


Definition and Usage

The href attribute specifies the location (URL) of the external resource (usually a stylesheet file).


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
URL The URL of the linked resource/document. Possible values: Absolute URL - points to another website (e.g., href="http://www.example.com/theme.css") <br> <br> Relative URL - points to a file within the website (e.g., href="/themes/theme.css")

❮ Tag Output Tag Iframe ❯