中的rel和type是什么意思?

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 -- 书签
    rel与rev属性相同,它们都是属于LinkTypes属性.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值