【问题标题】:What is the benefit of adding cite attribute in blockquote tag of html?在 html 的 blockquote 标签中添加 cite 属性有什么好处?
【发布时间】:2023-03-29 07:11:01
【问题描述】:

我正在从 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>

但文本呈现为,

50 年来,WWF 一直在保护自然的未来。作为世界领先的保护组织,WWF 在 100 个国家开展工作,并得到美国 120 万会员和全球近 500 万会员的支持。

我的问题是,当 html 代码将在网络浏览器中呈现时,读者将找不到 引用,那么在代码中添加它有什么好处?

它可能还有一些语义含义,例如在盲人的网络浏览器中,引文可能会发音。这只是我的猜测。

【问题讨论】:

    标签: html citations


    【解决方案1】:

    来自http://www.w3schools.com/tags/att_blockquote_cite.asp

    cite 属性指定引用的来源。

    提示:始终添加引用的来源是一个好习惯。

    cite 属性在任何主流浏览器中都不会呈现为任何特殊的东西,但它可以被搜索引擎用来获取有关引用的更多信息。

    另请参阅 Stackoverflow 上的 Correct use of Blockquote, q and cite?What is the cite attribute for?

    【讨论】:

    • 其实我是从这里读到的:w3schools.com/html/html_quotation_elements.asp他们没有提到搜索引擎。无论如何谢谢你。
    • 这能回答你的问题吗?
    • 显然是的。也许我的问题是重复的。顺便说一句,你能告诉任何比 w3school 更好的在线资源来学习 html 吗?
    • 如果是这样,请记住通过单击答案旁边的复选标记来通知其他用户。没有其他人可以为您做到这一点。
    • 如果你能告诉我一些其他更好的学习 html 的在线资源,我会的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-07-06
    • 1970-01-01
    • 1970-01-01
    • 2014-04-26
    • 1970-01-01
    • 2011-01-13
    • 1970-01-01
    相关资源
    最近更新 更多