<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
属性
使用说明
¥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.
示例
结果
技术总结
¥Technical summary
内容类别 | 流量内容, 措辞内容,可触及的内容。 |
---|---|
允许的内容 | 措辞内容. |
标签遗漏 | 无,开始和结束标记都是强制性的。 |
允许的父级 | 任何接受 措辞内容 的元素。 |
隐式 ARIA 角色 | 没有对应的角色 |
允许的 ARIA 角色 | 任何 |
DOM 接口 | HTMLElement 从 Gecko 1.9.2 (Firefox 4) 开始,Firefox 为该元素实现了 HTMLSpanElement 接口。 |
规范
Specification |
---|
HTML Standard # the-cite-element |
浏览器兼容性
BCD tables only load in the browser
也可以看看
¥See also
- 元素
<blockquote>
用于长引用。 - 用于内联引用的元素
<q>
和cite
属性。