blockquote标记应用注意事项
来源:才华咖 本文已影响1.15W人
来源:才华咖 本文已影响1.15W人
关于语义化,不是一句两句就能说明白的,而且现在也没有一个官方的很严格的定义。关于
没有争议的是:
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型文档更严格,也算是向后兼容了。
Will Robot Take the Place of Men英语作文
高考英语作文美人的肤色 The Skin Color of Beauty
三年级上册Unit2 Colours Part B Let’s talk教学反思
英语《Module 6 Unit 1 You can play football well》的教案设计
关于Outlook Web Access 2007的介绍
关于SEFC Book I Unit 7 Cultural Relics的教学方案
《Welcome back to school 》教学设计
英语教案:Welcome back to school
Notice about the flea marke初中英语作文
《Welcome back to school》第三课时教案
《Welcome back to school》的教案设计
关于Java中Queue和BlockingQueue的区别
英语阅读:Are You Tricked by These Optical Illusions
Don’t look back, let it go.高中作文
Welcome back to school 英语教学反思范文
The value of reading books英语作文
六年级上Book 7 Unit 13 Dialogue课后练习
英语作文Never judge a book by its cover
I would like to tell you英语作文
Boot Block恢复主板BIOS有什么技巧
英语作文 Complaint about the Noise Pollution
The Colour of Clouds英语作文
应聘面试13项注意事项
高二英语Unit 3TheMillionPoundBankNote教案
The Unforgettable School Trip英语作文
人教PEP版小学五年级英语下册Unit3Myschoolcalender.ALet’stalk
Boot Block恢复主板BIOS的技巧
The world Cup Football Final英语作文
登记日记账注意事项
Excel表格中出现"#VALUE!"错误信息要怎么解决
Which Mode of Travel Do You like为题目的作文
英语作文:The Value of Reading Books
高一英语写作范文:Is It the Only Way Out To Go To College
C语言double和float 实例分析用法
英语满分作文:Reading-TheBestMeanstoAcquireknowledge
英语阅读推荐:How to protect cultural identity
新目标八年级英语下册Unit 1 Will people have robots教案
Spring Boot使用slf4j+logback记录日志配置详解
商标使用许可注意事项
应用文·自荐书注意事项及格式