当前位置: 首页 > 网络学院 > 网页制作基础教程 > WEB设计综合 > HTML rel 属性
Alternate -- 定义交替出现的链接示例
定义两种不同的样式,用户可以通过浏览器选择样式(ie不支持此属性)
<link rel="stylesheet" type="text/css" title="blue" href="dreamdublue.css" />
<link rel="alternate stylesheet" type="text/css" title="red" href="dreamdured.css" /> 可以通过http://www.dreamdu.com/feed/读取http://www.dreamdu.com/的内容
<link rel="alternate" type="application/rss+xml" href="http://www.dreamdu.com/feed/" /> Stylesheet -- 定义一个外部加载的样式表href -- 指定需要加载的资源(CSS文件)的地址URImedia -- 媒体类型,参见CSS教程rel -- 指定链接类型rev -- 指定链接类型type -- 包含内容的类型,一般使用type="text/css"示例
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head> Start -- 通知搜索引擎,文档的开始示例
<link rel="start" type="text/html" href="http://www.dreamdu.com/xhtml/" />
<link rel="prev" type="text/html" href="http://www.dreamdu.com/xhtml/alternate/" />
<link rel="next" type="text/html" href="http://www.dreamdu.com/xhtml/attribute_rel/" /> next -- 记录文档的下一页.(浏览器可以提前加载此页)示例
<link rel="start" type="text/html" href="http://www.dreamdu.com/xhtml/" />
<link rel="prev" type="text/html" href="http://www.dreamdu.com/xhtml/alternate/" />
<link rel="next" type="text/html" href="http://www.dreamdu.com/xhtml/attribute_rel/" /> Prev -- 记录文档的上一页.(定义浏览器的后退键)示例
<link rel="start" type="text/html" href="http://www.dreamdu.com/xhtml/" />
<link rel="prev" type="text/html" href="http://www.dreamdu.com/xhtml/alternate/" />
<link rel="next" type="text/html" href="http://www.dreamdu.com/xhtml/attribute_rel/" /> ContentsIndex -- 当前文档的索引Glossary -- 词汇Copyright -- 当前文档的版权Chapter -- 当前文档的章节Section -- 作为文档的一部分Subsection -- 作为文档的一小部分Appendix -- 定义文档的附加信息Help -- 链接帮助信息Bookmark -- 书签rel与rev属性相同,它们都是属于LinkTypes属性.
注意:ie浏览器对此类型的支持非常不好,推荐使用Firefox
评论 (0) All