Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Blockquote element

From Wikipedia, the free encyclopedia
This article is about the HTML element. For the text quotation style, seeblock quotation.

InHTML andXHTML, theblockquoteelement defines "a section [within a document] that is quoted from another source".[1] The syntax is

<blockquote><p>blockquoted text goes here</p></blockquote>

Theblockquote 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 byCascading Style Sheets (CSS).

The non-semantic use of theblockquote element purely to indent text has been deprecated by the W3C (World Wide Web Consortium) since HTML 4.[2] The preferred approach is the use ofCSS.

Usage

[edit]

RelatedHTML elements include the<q> and<cite> tags for shorter, probably in-line,quotations and forcitations respectively. AnHTML attribute specific to the<blockquote> and<q> tags iscite= 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 maybedir= 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

[edit]

In manyWikimarkup 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 HTMLdd element enclosed within adl element. (That is a "data definition" within a "definition list", without there being any preceding "data term" ordt element).

See also

[edit]

References

[edit]
  1. ^"4.4.4 The blockquote element — HTML5".World Wide Web Consortium. Retrieved11 November 2015.
  2. ^HTML definition of ‘blockquote’

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Blockquote_element&oldid=1258196310"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp