HTML <cite> tag
定义和用法
<cite>
标签定义创意作品的标题(例如书籍、诗歌、歌曲、电影、绘画、雕塑等)。
注意:人名不是作品的标题。
在 <cite>
元素中的文本通常以斜体呈现。
详细说明
<cite>
标签通常表示它所包含的文本对某个参考文献的引用,比如书籍或者杂志的标题。
按照惯例,引用的文本将以斜体显示。
用 <cite>
标签把指向其他文档的引用分离出来,尤其是分离那些传统媒体中的文档,如书籍、杂志、期刊,等等。如果引用的这些文档有联机版本,还应该把引用包括在一个 标签中,从而把一个超链接指向该联机版本。
<cite>
标签还有一个隐藏的功能:它可以使你或者其他人从文档中自动摘录参考书目。我们可以很容易地想象一个浏览器,它能够自动整理引用表格,并把它们作为脚注或者独立的文档来显示。<cite>
The semantics of the tag have far exceeded the role of changing the appearance of the text it contains; it enables browsers to express the content of the document to users in various practical ways.
See also:
HTML DOM reference manual:Cite object
Example
Use the <cite> tag to define the title of a work:
<p><cite>《鸢尾花》</cite>,克劳德·莫奈绘于约 1914 – 1917 年。。
Global attributes
<cite>
The tag also supports Global attributes in HTML.
Event attributes
<cite>
The tag also supports Event attributes in HTML.
Default CSS settings
Most browsers will display the following default values <cite>
Element:
cite { font-style: italic; }
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |