<cite>:引文元素

<cite> HTML 元素用于标记被引用的创意作品的标题。根据与引文元数据相关的上下文适当的惯例,参考文献可以是缩写形式。

¥The <cite> HTML element is used to mark up the title of a cited creative work. The reference may be in an abbreviated form according to context-appropriate conventions related to citation metadata.

Try it

属性

¥Attributes

该元素仅包含 全局属性

¥This element only includes the global attributes.

使用说明

¥Usage notes

<cite> 元素的背景下,可以引用的创造性作品可以是以下之一:

¥In the context of the <cite> element, a creative work that might be cited could be, for example, one of the following:

  • 一本书
  • 一篇研究论文
  • 一篇作文
  • 一首诗
  • 乐谱
  • 一首歌
  • 戏剧或电影脚本
  • 一个电影
  • 一个电视节目
  • 一个游戏
  • 一座雕塑
  • 一幅画
  • 一部戏剧作品
  • 一出戏
  • 一部歌剧
  • 音乐剧
  • 一个展览
  • 法律案例报告
  • 一个计算机程序
  • 一个网站
  • 一个网页
  • 博客文章或评论
  • 论坛帖子或评论
  • 一条推文
  • 脸书帖子
  • 书面或口头陈述
  • 等等。

要包含对 <blockquote><q> 元素中包含的引用材料来源的引用,请在该元素上使用 cite 属性。

¥To include a reference to the source of quoted material which is contained within a <blockquote> or <q> element, use the cite attribute on the element.

通常,浏览器默认将 <cite> 元素的内容设置为斜体。为了避免这种情况,请将 CSS font-style 属性应用于 <cite> 元素。

¥Typically, browsers style the contents of a <cite> element in italics by default. To avoid this, apply the CSS font-style property to the <cite> element.

示例

¥Examples

html
<p>More information can be found in <cite>[ISO-0000]</cite>.</p>

结果

¥Result

技术总结

¥Technical summary

内容类别 流量内容措辞内容,可触及的内容。
允许的内容 措辞内容.
标签遗漏 无,开始和结束标记都是强制性的。
允许的父级 任何接受 措辞内容 的元素。
隐式 ARIA 角色 没有对应的角色
允许的 ARIA 角色 任何
DOM 接口 HTMLElement 从 Gecko 1.9.2 (Firefox 4) 开始,Firefox 为该元素实现了 HTMLSpanElement 接口。

规范

Specification
HTML Standard
# the-cite-element

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility

也可以看看

¥See also