二维码

HTML 引文和引文元素

在本章中,我们将介绍, , , , 和 HTML 元素。<blockquote> <q> <abbr> <address> <cite> <bdo>

1
2
3
Here is a quote from WWF's website:

> For 60 years, WWF has worked to help people and nature thrive. As the world's leading conservation organization, WWF works in nearly 100 countries. At every level, we collaborate with people around the world to develop and deliver innovative solutions that protect communities, wildlife, and the places in which they live.

用于报价的 HTML <blockquote>

HTML 元素定义了一个部分,该部分 引用自另一个来源。<blockquote>

浏览器通常缩进元素。<blockquote>

1
2
3
4
<p>Here is a quote from WWF's website:</p>  
<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 60 years, WWF has worked to help people and nature thrive. As the world's leading conservation organization, WWF works in nearly 100 countries. At every level, we collaborate with people around the world to develop and deliver innovative solutions that protect communities, wildlife, and the places in which they live.
</blockquote>

HTML <q> 短引号

HTML 标记定义了一个简短的引号。<q>

浏览器通常会在引号两边插入引号。

1
<p>WWF's goal is to: <q>Build a future where people live in harmony with nature.</q></p>

HTML <abbr >

HTML 标签定义了缩写或首字母缩略词,例如“HTML”, “CSS”, “Mr.”, “Dr.”、“ASAP”、“ATM”。<abbr>

标记缩写可以为浏览器提供有用的信息,翻译 系统和搜索引擎。

提示: 使用全局标题属性可以 显示 缩写/首字母缩略词,当您将鼠标悬停在元素上时。

1
<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>

HTML <address> 联系信息

HTML 标记定义文档作者/所有者的联系信息 或一篇文章。<address>

联系信息可以是电子邮件地址、URL、实际地址、电话 号码、社交媒体句柄等。

元素中的文本通常以*斜体呈现,*浏览器将 始终在元素之前和之后添加换行符。<address> <address>

1
2
3
4
5
6
7
<address>  
Written by John Doe.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>

HTML <cite> for Work Title

HTML 标记定义 创意作品(例如一本书、一首诗、一首歌、一部电影、一幅画、一件雕塑等)。<cite>

注意: 一个人的名字不是作品的标题。

元素中的文本通常以斜体呈现。<cite>

1
<p><cite>The Scream</cite> by Edvard Munch. Painted in 1893.</p>

HTML <bdo> 用于双向覆盖

BDO 代表 双向覆盖。

HTML 标记用于覆盖 当前文本方向:<bdo>

1
<bdo dir="rtl">This text will be written from right to left</bdo>

HTML 引文和引文元素

Tag Description
[<abbr>] Defines an abbreviation or acronym
[<address>] Defines contact information for the author/owner of a document
[<bdo>] Defines the text direction
[<blockquote>] Defines a section that is quoted from another source
[<cite>] Defines the title of a work
[<q>] Defines a short inline quotation

有关所有可用 HTML 标记的完整列表,请访问我们的 [HTML 标记参考]