主頁(yè) > 知識(shí)庫(kù) > blockquote標(biāo)記應(yīng)用注意

blockquote標(biāo)記應(yīng)用注意

熱門(mén)標(biāo)簽:西安金倫外呼系統(tǒng) 江西ai電銷(xiāo)機(jī)器人如何 地圖標(biāo)注員工作內(nèi)容 高德地圖標(biāo)注廁所 威海語(yǔ)音外呼系統(tǒng)平臺(tái) 通遼地圖標(biāo)注app 智能語(yǔ)音電銷(xiāo)機(jī)器人客戶(hù)端 中國(guó)地圖標(biāo)注城市的 地圖標(biāo)注沿海城市房?jī)r(jià)

關(guān)于語(yǔ)義化,不是一句兩句就能說(shuō)明白的,而且現(xiàn)在也沒(méi)有一個(gè)官方的很?chē)?yán)格的定義。關(guān)于<blockquote>沒(méi)有爭(zhēng)議的是:
1.引用一段較長(zhǎng)的文字
2.可以使用cite標(biāo)簽或者屬性
問(wèn)題是<blockquote>引用的文字必須使用塊級(jí)元素將他包含嗎?
首先是來(lái)自W3C的解釋
9.2.2 Quotations: The BLOCKQUOTE and Q elements<!ELEMENT BLOCKQUOTE - - (%block;|SCRIPT) -- long quotation --><!ATTLIST BLOCKQUOTE %attrs;
-- %coreattrs, %i18n, %events -- cite
%URI;
#IMPLIED -- URI for source document or msg -- ><!ELEMENT Q - - (%inline;)*
-- short inline quotation --><!ATTLIST Q %attrs;
-- %coreattrs, %i18n, %events -- cite
%URI;
#IMPLIED -- URI for source document or msg -- >
這兩個(gè)便簽指名包含的內(nèi)容為引用文字. BLOCKQUOTE 用于長(zhǎng)文字的引用(block-level content) 而 Q 用于短文字的引用(inline content) 且不允許引用的句子不完整。
這個(gè)例子的文字來(lái)自 "The Two Towers", 作者 J.R.R. Tolkien, 最為引用文字.
<BLOCKQUOTE cite="http://www.mycom.com/tolkien/twotowers.html"><P>They went in single file, running like hounds on a strong scent,and an eager light was in their eyes. Nearly due west the broad swath of the marching Orcs tramped its ugly slot; the sweet grass of Rohan had been bruised and blackened as they passed.</P></BLOCKQUOTE>
這篇文章是應(yīng)用web標(biāo)準(zhǔn)進(jìn)行開(kāi)發(fā),里面提到了關(guān)于一些TAGS的語(yǔ)義下面摘錄的是<blockquote>
For longer quotations that form one or more paragraphs, the <blockquote> element should be used. CSS can then be used to style the quotation. Note that text is not allowed directly inside a <blockquote> element – it must be contained in an element, usually a <p> element.
Example:<blockquote cite="http://www.w3.org/TR/1999/REC-html401-19991224/struct/text.html"> <p>&#8220;The following sections discuss issues surrounding the structuring of text. Elements that present text (alignment elements, font elements, style sheets, etc.) are discussed elsewhere in the specification. For information about characters, please consult the section on the document character set.&#8221;</p></blockquote>
http://24ways.org/advent/transitional-vs-strict-markup
這篇文章是關(guān)于transitional-vs-strict,過(guò)渡型和標(biāo)準(zhǔn)型xhtml的區(qū)別,里面提到了內(nèi)容模型的區(qū)別,有關(guān)于<blockquote>的內(nèi)容,在strict中,引用的內(nèi)容必須使用塊級(jí)元素將其包含,通常是<p>,<div>中。
Content model differences
An element type’s content model describes what may be contained by an instance of the element type. The most important difference in content models between Transitional and Strict is that blockquote, body, and form elements may only contain block level elements. A few examples:
text and images are not allowed immediately inside the body element, and need to be contained in a block level element like p or div
input elements must not be direct descendants of a form element
text in blockquote elements must be wrapped in a block level element like p or div
所以,我認(rèn)為,在strict型必須用塊級(jí)元素將引用文字包含,而在非strict型中就不必了,但是建議這樣這樣做,因?yàn)閟trict型文檔更嚴(yán)格,也算是向后兼容了。

標(biāo)簽:青海 眉山 河池 營(yíng)口 晉中 北海 崇左 阜陽(yáng)

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《blockquote標(biāo)記應(yīng)用注意》,本文關(guān)鍵詞  blockquote,標(biāo)記,應(yīng)用,注意,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《blockquote標(biāo)記應(yīng)用注意》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于blockquote標(biāo)記應(yīng)用注意的相關(guān)信息資訊供網(wǎng)民參考!
  • 企业400电话

    智能AI客服机器人
    15000

    在线订购

    合计11份范本:公司章程+合伙协议+出资协议+合作协议+股权转让协议+增资扩股协议+股权激励+股东会决议+董事会决议

    推薦文章