文章の引用
w3cのhtml4.01strictより要素を抜き出しています。
補足は独自意見ですので参考程度でご覧ください。
blockquote
引用文を明示するために使用する。
- 開始タグ
- 省略不可
- 終了タグ
- 省略不可
- 包含要素
- ブロックレベル、script
- 属性
- %attrs;、cite
- 補足
- blockquote内はブロックレベルかscript要素なのでテキストが裸で出現してはいけない。
<!--=================== Block-like Quotes ================================--> <!ELEMENT BLOCKQUOTE - - (%block;|SCRIPT)+ -- long quotation --> <!ATTLIST BLOCKQUOTE %attrs; -- %coreattrs, %i18n, %events -- cite %URI; #IMPLIED -- URI for source document or msg -- >
cite属性
blockquote要素の属性でcite要素とは別。cite = uri [CT]としuri(Uniform Resource Identifiers)を記述する。
<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>
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.
このページではCSSでblockquote要素のマージンとパディングは0に設定されています。w3cのサンプルのhttp://www.mycom.com/tolkien/twotowers.htmlは実在しないようです。
視覚系ブラウザ(ユーザエージェント)では一般的にインデントされるためインデントの目的で使用されることがあるがCSSでインデントを実現することが望ましい。