HTML blockquote cite 属性

2018-08-30 14:40 更新

HTML <blockquote> cite 属性

HTML blockquote 标签参考手册 HTML <blockquote> 标签

实例

下面这个 blockquote 元素中的 cite 属性指定了引用的来源:

<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally. WWF's unique way of working combines global reach with a foundation in science, involves action at every level from local to global, and ensures the delivery of innovative solutions that meet the needs of both people and nature.
</blockquote>

尝试一下 »

浏览器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

主流浏览器均不支持 cite 属性。不过,搜索引擎可能会使用该属性获得更多有关引用的信息。


定义和用法

cite 属性规定引用的来源。

提示: 该属性的值是一个包含在引号中并指向联机文档的 URL,以及(如果有可能的话)引用在该文档中的确切位置。


语法

<blockquote cite="URL">

属性值

描述
URL

引用的来源的 URL。

可能的值:

  • 绝对 URL - 指向另一个站点(比如 href="http://www.example.com/song.ogg" rel="external nofollow" target="_blank" )
  • 相对 URL - 指向网站内的文件(比如 href="song.ogg")


HTML blockquote 标签参考手册 HTML <blockquote> 标签

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号