type指定所连接文档的MIME类型,css的MIME是type/css。
rel设定是指对象和链接目标的关系:
rel可选值, link还可以用Shortcut Icon, offline
Alternate
Substitute version of the file that contains the link.
Appendix
Page that is an appendix for the set of pages.
Bookmark
Bookmark.
Chapter
Page that is a chapter for a set of pages.
Contents
Table of contents document.
Copyright
Copyright notice for the current page.
Glossary
Glossary for the current page.
Help
Help document.
Index
Index document for the current page.
Next
Next document in a sequence.
Offline
href that contains a path to the CDF file to be used for an offline favorite.
Prev
Previous document in a sequence.
Section
Page that is a section for a set of pages.
Shortcut Icon
href that contains a path to an icon file to be used for the favorite or link.
Start
First document of a set.
Stylesheet
Style sheet.
Subsection
Page that is a subsection for a set of pages.
补充一句
所谓MIME 最初指的是多功能互联网的邮件扩展 原先是为了判断电子邮件的附件格式而设计的一段字符串。现在却演变称了互联网中专门用来判断文件格式的标准。
例如text/javascript text/css text/xml text/html等都是适合浏览器本身来处理的MIME类型
- rel属性通常出现在a,link标签中
- 属性值
- Alternate -- 定义交替出现的链接
- Stylesheet -- 定义一个外部加载的样式表
- Start -- 通知搜索引擎,文档的开始
- Next -- 记录文档的下一页.(浏览器可以提前加载此页)
- Prev -- 记录文档的上一页.(定义浏览器的后退键)
Contents
Index
-- 当前文档的索引Glossary
-- 词汇Copyright
-- 当前文档的版权Chapter
-- 当前文档的章节Section
-- 作为文档的一部分Subsection
-- 作为文档的一小部分Appendix
-- 定义文档的附加信息Help
-- 链接帮助信息Bookmark
-- 书签