HTML blockquote的cite属性

返回到:HTML blockquote标签

了解下HTML blockquote的cite属性。

定义和用法

cite 属性规定引用的来源。

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

语法

<blockquote cite="URL">

浏览器支持

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

属性值

描述
URL引用的来源的 URL。可能的值:绝对 URL – 指向另一个站点(比如 href=”http://www.example.com/song.ogg”)相对 URL – 指向网站内的文件(比如 href=”song.ogg”)

实例

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

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Web176教程(web176.com)</title> 
</head>
<body>

<h1>About WWF</h1>
<p>Here is a quote from WWF's website:</p>

<blockquote cite="https://www.web176.com">
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.
</blockquote>

</body>
</html>

返回到:HTML blockquote标签

作者:terry,如若转载,请注明出处:https://www.web176.com/html_element/7254.html

(0)
打赏 支付宝 支付宝 微信 微信
terryterry
上一篇 2022年10月27日 下午9:40
下一篇 2022年10月27日 下午9:59

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注