Link标签为空标签
最常用的用途
1.链接css文件
<link rel="stylesheet" type="text/css"href="img/test.css" />
2.设置favicon
<link rel="icon" href="favicon.ico" type="image/x-icon" />
link的rel属性是relation的缩写,表示与链接的关系。
link的属性如下
| 属性 | 值 | 描述 |
|---|---|---|
| charset | char_encoding | HTML5 中不支持。 |
| href | URL | 规定被链接文档的位置。 |
| hreflang | language_code | 规定被链接文档中文本的语言。 |
| media | media_query | 规定被链接文档将被显示在什么设备上。 |
| rel |
| 规定当前文档与被链接文档之间的关系。 |
| rev | reversed relationship | HTML5 中不支持。 |
| sizes |
| 规定被链接资源的尺寸。仅适用于 rel="icon"。 |
| target |
| HTML5 中不支持。 |
| type | MIME_type | 规定被链接文档的 MIME 类型。 |

被折叠的 条评论
为什么被折叠?



