Home > Web Front-end > HTML Tutorial > link标签的rel等属性属性的作用简单介绍_html/css_WEB-ITnose

link标签的rel等属性属性的作用简单介绍_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:29:48
Original
1983 people have browsed it

link标签的rel等属性属性的作用简单介绍:
大家知道通过标签可以引入外部样式表,例如:

<link rel="stylesheet" type="text/css" href="style.css" />
Copy after login

属性解析:
1.href:规定引入文件的路径。
2.type:规定被链接文件的格式类型。
3.rel:用来规定当前文档与被连接文档的关系。
如果rel的值是stylesheet,也就是说引入的文件可以作为当前文件的样式表。
rel是relationship的缩写。

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=13772

更多内容可以参阅:http://www.softwhy.com/divcss/

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template