HTML link href attribute
Examples
Link to an external style sheet:
<link rel="stylesheet" type="text/css" href="theme.css">
try it"
Browser Support
All major browsers support the href attribute.
Definition and Usage
href attribute specifies the external resources (usually the style sheet file) the location (URL).
Differences between HTML 4.01 and HTML5
no.
grammar
<link href="URL">
Property Value
值 | 描述 |
---|---|
URL | 被链接资源/文档的 URL。 可能的值:
|
HTML <link> tag