在 html 的 blockquote 标签中添加 cite 属性有什么好处?
What is the benefit of adding cite attribute in blockquote tag of html?
我正在向 w3school.com 学习 html。在 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.
</blockquote>
但是文本呈现为,
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.
我的问题是,当 html 代码将在网络浏览器中呈现时,reader 将找不到 引用 ,那么什么是在代码中添加它的好处?
它可能又具有一些语义含义,例如在盲人的网络浏览器中,引用可能会被发音。那只是我的猜测。
来自http://www.w3schools.com/tags/att_blockquote_cite.asp:
The cite attribute specifies the source of a quotation.
Tip: It's a good habit to always add the source of a quotation, if any.
The cite attribute does not render as anything special in any of the major browsers, but it can be used by search engines to get more information about the quotation.
另请参阅 Whosebug 上的 Correct use of Blockquote, q and cite? and What is the cite attribute for?。
我正在向 w3school.com 学习 html。在 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.
</blockquote>
但是文本呈现为,
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.
我的问题是,当 html 代码将在网络浏览器中呈现时,reader 将找不到 引用 ,那么什么是在代码中添加它的好处?
它可能又具有一些语义含义,例如在盲人的网络浏览器中,引用可能会被发音。那只是我的猜测。
来自http://www.w3schools.com/tags/att_blockquote_cite.asp:
The cite attribute specifies the source of a quotation.
Tip: It's a good habit to always add the source of a quotation, if any.
The cite attribute does not render as anything special in any of the major browsers, but it can be used by search engines to get more information about the quotation.
另请参阅 Whosebug 上的 Correct use of Blockquote, q and cite? and What is the cite attribute for?。