相关文章
网站制作Photoshop滤镜组合打造魔幻背景
网站制作打印网页中定义的部分内容的实现方法
北京网站设计网页制作 谈谈CSS样式表的命名规范
网站建设图片在显示一定的时间后消失
北京网页设计实现网页渐入特殊效果
网站建设如何设计人性化的登录界面
网页设计网站策划之网站改版的几点建议
北京网站制作应用DIV+CSS编码时容易犯的一些错误
www.qitongnet.com盗链、防盗链与网站可用性
北京网站设计推荐几个入门级的JS特效代码
品牌理念
北京网站建设最佳合作伙伴
北京网站建设专家企通互联
竭诚为您提供网站建设服务!
友好连接
文章搜索
你的位置:首页 >> 网页设计 >> 北京网站制作网站建设blockquote标签应该怎样使用?
北京网站制作网站建设blockquote标签应该怎样使用?
www.qitongnet.com关于语义化,不是一句两句就能说明白的,而且现在也没有一个官方的很严格的定义。关于<blockquote>没有争议的是: Chinaz
1、引用一段较长的文字
站长.站
2、可以使用cite标签或者属性 北京网站设计站.长.站
问题是<blockquote>引用的文字必须使用块级元素将他包含吗? Chinaz
首先是来自W3C的解释 Chinaz~com
| 以下为引用的内容: 北京网页设计北京网站建设 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>北京网站设计 http://www.456bereastreet.com/lab/developing_with_web_standards/structure/ |
这篇文章是应用web标准进行开发,里面提到了关于一些TAGS的语义下面摘录的是<blockquote> Chinaz
| 以下为引用的内容:网站设计 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>“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.”</p></blockquote> Www_Chinaz_com 网站设计 http://24ways.org/advent/transitional-vs-strict-markup |
这篇文章是关于transitional-vs-strict,过渡型和标准型xhtml的区别,里面提到了内容模型的区别,有关于<blockquote>的内容,在 网站设计strict中,引用的内容必须使用块级元素将其包含,通常是<p>,<div>中。 北京网站建设站长.站
| 以下为引用的内容:北京网站设计 Content model differences Www~Chinaz~com
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: Www^Chinaz^com 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 北京网站制作 |
所以,我认为,在strict型必须用块级元素将引用文字包含,而在非strict型中就不必了,但是建议这样这样做,因为strict型文档更严格,也算是向后兼容了。
Www_Chinaz_com