当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <blockquote>标签

HTML
HTML 介绍
HTML 元素
HTML 基本标签
HTML 格式
HTML 实体字符
HTML 链接
HTML 框架
HTML 表格
HTML 列表
HTML 表单
HTML 图片
HTML 背景
HTML 颜色
HTML 颜色值
HTML 颜色名
HTML 便条
HTML 布局
HTML 字体
HTML 4.0
HTML 样式

HTML <blockquote>标签


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 481 ::
收藏到网摘: n/a

Definition and Usage
用法

The <blockquote> tag defines the start of a long quotation.
<blockqutoe>标签定义了长篇文字的引用


Differences Between HTML and XHTML
在HTML和XHTML中的区别

The <blockquote> tag is supposed to contain only block-level elements within it, and not just plain text.
<blockquote>标签需要在里面再加上块级的元素,而不是直接放上文字

To validate the page as strict XHTML, you must add a block-level element around the text within the <blockquote> tag, like this:
要校验页面是否为严密的XHTML,你必须加上块级的元素,像这样:

<blockquote>
<p>here is a long quotation here is a long quotation</p>
</blockquote>


Tips and Notes
注意点

Note: The blockquote element creates white space on both sides of the text.
blockquote元素会在文字的两端建立空白间隙


Example
实例

源代码 输出结果
Here comes a long quotation: <blockquote> here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation </blockquote> Here comes a long quotation:
here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation


Optional Attributes
可选的属性

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
下表中的DTD列指明了被支持的DTD属性。S=Strict(精确的),T=Transitional(传统的),F=Frameset(框架)

属性 描述 DTD
cite URL URL of the quote, if it is taken from the web
引用的URL地址
STF

Standard Attributes
标准的属性

id, class, title, style, dir, lang, xml:lang

For a full description, go to Standard Attributes.
查看完整的描述

Event Attributes
事件属性

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

For a full description, go to Event Attributes.
查看完整的描述


Try-It-Yourself Demos
演示

Quotations
How to handle long and short quotations.
如何处理长和短引用

评论 (0) All

登陆 | 还没注册?