<q>:内嵌引用元素
<q>
HTML 元素指示所包含的文本是简短的内嵌引用。大多数现代浏览器通过将文本括在引号中来实现这一点。此元素适用于不需要段落分隔符的简短引用;对于长引用,请使用 <blockquote>
元素。
¥The <q>
HTML element indicates that the enclosed text is a short inline quotation. Most modern browsers implement this by surrounding the text in quotation marks. This element is intended for short quotations that don't require paragraph breaks; for long quotations use the <blockquote>
element.
Try it
属性
¥Attributes
该元素包括 全局属性。
¥This element includes the global attributes.
cite
-
该属性的值是一个 URL,指定所引用信息的源文档或消息。该属性旨在指向解释上下文或引用引用的信息。
示例
结果
技术总结
规范
Specification |
---|
HTML Standard # the-q-element |
浏览器兼容性
BCD tables only load in the browser
也可以看看
¥See also
- 长引用的
<blockquote>
元素。 - 来源引用的
<cite>
元素。