<q>
HTML 引用标签 (<q>) 表示一个封闭的并且是短的行内引用的文本。这个标签是用来引用短的文本,所以请不要引入换行符; 对于长的文本的引用请使用 <blockquote>
替代。
Content categories | Flow content, phrasing content, palpable content. |
---|---|
Permitted content | Phrasing content. |
Tag omission | 不允许,开始标签和结束标签都不能省略。 |
Permitted parent elements | Any element that accepts phrasing content. |
DOM interface | HTMLQuoteElement (en-US) |
null
属性
示例
HTML 内容
<p>Everytime Kenny is killed, Stan will announce
<q cite="http://en.wikipedia.org/wiki/Kenny_McCormick#Cultural_impact">
Oh my God, you/they killed Kenny!
</q>.
</p>
说明
Specification | Status | Comment |
---|---|---|
HTML Living Standard <q> |
Living Standard | |
HTML5 <q> |
Recommendation | |
HTML 4.01 Specification <q> |
Recommendation | Initial definition |
浏览器兼容性
BCD tables only load in the browser
另见
- The
<blockquote>
element for long quotations. - The
<cite>
element for source citations.