Blockquote element: Difference between revisions
m ( |
|||
Line 12: | Line 12: | ||
===Relationship to some wiki markup and usage=== |
===Relationship to some wiki markup and usage=== |
||
In many [[Wiki]] [[Wikitext|markup languages]], the semantics and effect of HTML <code><blockquote></code> is different from the use of an initial colon in a paragraph, which may be translated into an HTML <code>dd</code> element enclosed within a <code>dl</code> element. (That is a |
In many [[Wiki]] [[Wikitext|markup languages]], the semantics and effect of HTML <code><blockquote></code> is different from the use of an initial colon in a paragraph, which may be translated into an HTML <code>dd</code> element enclosed within a <code>dl</code> element. (That is a "data definition" within a "definition list", without there being any preceding "data term" or <code>dt</code> element). |
||
== See also == |
== See also == |
Revision as of 06:44, 14 June 2013
In HTML and XHTML, the blockquote element defines "a section [within a document] that is quoted from another source".[1] The syntax is <blockquote><p>blockquoted text goes here</p></blockquote>
.
The blockquote
element is used to indicate the quotation of a large section of text from another source. Using the default HTML styling of most web browsers, it will indent the right and left margins both on the display and in printed form, but this may be overridden by Cascading Style Sheets (CSS)
The non-semantic use of the blockquote
element purely to indent text is deprecated by the W3C (World Wide Web Consortium) in the current (1999) HTML 4.01 Specification,[2] which is also the basis for XHTML 1.0. The preferred approach is the use of CSS.
Usage
Related (X)HTML elements include the <q>
and <cite>
elements for shorter, probably in-line, quotations and for citations respectively. An (X)HTML attribute specific to the <blockquote>
and <q>
elements is cite=
where the provenance of the material quoted may be given. If the quotation is in a language other than that of the main document, lang=
and maybe dir=
attributes may be relevant to specify the language of the quoted text and perhaps its direction, left-to-right or right-to-left. class=
may be used for semantic or styling purposes.
Relationship to some wiki markup and usage
In many Wiki markup languages, the semantics and effect of HTML <blockquote>
is different from the use of an initial colon in a paragraph, which may be translated into an HTML dd
element enclosed within a dl
element. (That is a "data definition" within a "definition list", without there being any preceding "data term" or dt
element).
See also
References
- ^ "4.5.4 The blockquote element — HTML5". World Wide Web Consortium. Retrieved 31 July 2012.
- ^ HTML definition of ‘blockquote’