blockquote標記應用注意事項
關於語義化,不是一句兩句就能説明白的,而且現在也沒有一個官方的很嚴格的定義。關於
沒有爭議的是:
1.引用一段較長的文字
2.可以使用cite標籤或者屬性
問題是
引用的.文字必須使用塊級元素將他包含嗎?
首先是來自W3C的解釋
9.2.2 Quotations: The BLOCKQUOTE and Q elements<!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, 最為引用文字.
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.
這篇文章是應用web標準進行開發,裏面提到了關於一些TAGS的語義下面摘錄的是
For longer quotations that form one or more paragraphs, the
element should be used. CSS can then be used to style the quotation. Note that text is not allowed directly inside a
element – it must be contained in an element, usually a
element.
Example:
“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.”
這篇文章是關於transitional-vs-strict,過渡型和標準型xhtml的區別,裏面提到了內容模型的區別,有關於
的內容,在strict中,引用的內容必須使用塊級元素將其包含,通常是
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型文檔更嚴格,也算是向後兼容了。
-
【必備】勞動的意義作文四篇
在平時的學習、工作或生活中,説到作文,大家肯定都不陌生吧,作文是一種言語活動,具有高度的綜合性和創造性。為了讓您在寫作文時更加簡單方便,下面是小編為大家收集的勞動的意義作文4篇,供大家參考借鑑,希望可以幫助到有需要的朋友。勞動的意義作文篇1今天下午,我們學校...
-
有意義的星期天作文400字(精選44篇)
無論在學習、工作或是生活中,大家都不可避免地要接觸到作文吧,藉助作文人們可以實現文化交流的目的。相信許多人會覺得作文很難寫吧,以下是小編為大家收集的有意義的星期天作文400字,僅供參考,大家一起來看看吧。有意義的星期天作文1我們每個人的星期天都是多姿多彩...
-
有關勞動的意義作文9篇
無論在學習、工作或是生活中,大家或多或少都會接觸過作文吧,作文根據寫作時限的不同可以分為限時作文和非限時作文。你寫作文時總是無從下筆?以下是小編精心整理的勞動的意義作文9篇,僅供參考,大家一起來看看吧。勞動的意義作文篇1這是一個快樂的假期,今天我來到爺爺...
-
勞動的意義作文400字七篇
在我們平凡的日常裏,許多人都有過寫作文的經歷,對作文都不陌生吧,作文是經過人的思想考慮和語言組織,通過文字來表達一個主題意義的記敍方法。那麼你有了解過作文嗎?以下是小編精心整理的勞動的意義作文400字8篇,歡迎閲讀,希望大家能夠喜歡。勞動的意義作文400字篇1今...
相關文章
- 六年級英語Unit 1 Welcome back to school教學設計
- 英語閲讀:Tobacco Plant to Make Jet Fuel
- Don’t look back, let it go.高中作文
- 《Welcome back to school 》教學設計
- Welcome back to school 英語教學反思範文
- 《Welcome back to school》的教案設計
- Module 3 Unit 2 I love my pocket calculator説課稿
- 《Welcome back to school》第三課時教案
- 英語教案:Welcome back to school
- 英語美文閲讀:Kerry: Anti-IS Coalition Could Contribute to B