?
This document uses PHP Chinese website manual Release
HTML引用標(biāo)簽(<q>)表示一個封閉的并且是短的行內(nèi)引用的文本. 這個標(biāo)簽是用來引用短的文本,所以請不要引入換行符; 對于長的文本的引用請使用<blockquote>
替代.
內(nèi)容類別 | Flow content, phrasing content, palpable content. |
---|---|
允許的內(nèi)容 | phrasing content, |
標(biāo)記遺漏 | 沒有,起始和結(jié)束標(biāo)簽都是強制性的。 |
允許父級 | 任何接受 phrasing content, 的元素。 |
允許ARIA角色 | 任何 |
DOM界面 | HTMLQuoteElement |
使用說明:大多數(shù)現(xiàn)代瀏覽器會自動為<q>
元素內(nèi)的文本添加引號。在舊的瀏覽器中可能需要使用樣式規(guī)則來添加引號。
這個元素包含全局屬性。
cite
這個屬性的值是URL,意在指出被引用的文本的源文檔或者源信息. 這個屬性重在解釋這個引用的參考或者是上下文.
<p>According to Mozilla's website, <q cite="https://www.mozilla.org/en-US/about/history/details/"> Firefox 1.0 was released in 2004 and became a big success.</q></p>
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of '<q>' in that specification. | Living Standard | |
HTML5The definition of '<q>' in that specification. | Recommendation | |
HTML 4.01 SpecificationThe definition of '<q>' in that specification. | Recommendation | Initial definition |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | 1 | (Yes) | (Yes) | (Yes) |