1976年贪婪的嘴唇,韩国少妇激三级做爰2023电影,久久久久久精品国产三级涨奶,妖精漫画在线观看免费漫画下拉式

blockquote標記應用注意
來源:易賢網 閱讀:1160 次 日期:2016-07-04 11:37:12
溫馨提示:易賢網小編為您整理了“blockquote標記應用注意”,方便廣大網友查閱!

關于語義化,不是一句兩句就能說明白的,而且現在也沒有一個官方的很嚴格的定義。關于<blockquote>沒有爭議的是:

1.引用一段較長的文字

2.可以使用cite標簽或者屬性

問題是<blockquote>引用的文字必須使用塊級元素將他包含嗎?

首先是來自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 -- >

這兩個便簽指名包含的內容為引用文字. BLOCKQUOTE 用于長文字的引用(block-level content) 而 Q 用于短文字的引用(inline content) 且不允許引用的句子不完整。

這個例子的文字來自 "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>

這篇文章是應用web標準進行開發,里面提到了關于一些TAGS的語義下面摘錄的是<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

這篇文章是關于transitional-vs-strict,過渡型和標準型xhtml的區別,里面提到了內容模型的區別,有關于<blockquote>的內容,在strict中,引用的內容必須使用塊級元素將其包含,通常是<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

所以,我認為,在strict型必須用塊級元素將引用文字包含,而在非strict型中就不必了,但是建議這樣這樣做,因為strict型文檔更嚴格,也算是向后兼容了。

更多信息請查看網頁制作
易賢網手機網站地址:blockquote標記應用注意
由于各方面情況的不斷調整與變化,易賢網提供的所有考試信息和咨詢回復僅供參考,敬請考生以權威部門公布的正式信息和咨詢為準!

2026國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機號
  • 驗證碼
關于我們 | 聯系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
工業和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
云南網警備案專用圖標
聯系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網
云南網警報警專用圖標
主站蜘蛛池模板: 黑龙江省| 新乐市| 井研县| 土默特左旗| 清新县| 宁阳县| 黄浦区| 安达市| 昌吉市| 哈尔滨市| 安丘市| 丹江口市| 马龙县| 松潘县| 永善县| 德令哈市| 达孜县| 甘肃省| 凤翔县| 海口市| 鲁甸县| 北海市| 佛山市| 东台市| 平定县| 六盘水市| 榕江县| 福州市| 明光市| 土默特右旗| 灯塔市| 迭部县| 兖州市| 阳泉市| 桑日县| 长岛县| 塘沽区| 商都县| 堆龙德庆县| 盖州市| 鹤壁市|