Home >Web Front-end >HTML Tutorial >How to use html blockquote tag? Detailed explanation of the function of html blockquote tag
html How to use blockquote tag? What is the function of html blockquote tag? This article mainly talks about the definition, usage and attributes of the html blockquote tag, as well as the difference between the
tag and thetag.html The definition and usage of blockquote tag:
Tag: Define block quote.All text between
andis separated from the regular text, often indented (increased margins) on the left and right, and sometimes italicized . That is, block references have their own space.HTML
tag example:Mark long quote:
<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. </blockquote>html blockquote tag attributes:
tag andtag both mean "quote"The difference between
tag andtag:1. Different formats
1.
: The q tag is an inline element and will contain [""] at the beginning and end of the content;2.
: blockquote is a block-level element, with an outer spacing of 40px on the left and right by default, without [""].2. Different semantics
1.
: Quoting a small paragraph of text;2.
: Quoting It is a large block of content.The
tag is essentially the same as. The difference lies in their display and application. Thetag is used for brief inline quotations. If you need to separate a longer section from surrounding content (usually shown as an indented block), use thetag.Tips and Notes:
Tip: Please use the q element to mark short quotes.
Note: If you need to validate the page as strict XHTML, the
element must contain block-level elements, such as this:<blockquote> <p>here is a long quotation here is a long quotation</p> </blockquote>Browser support:
All major browsers support the
tag.Note: No browser displays the cite attribute correctly.
[Related recommendations]
What is the lang attribute in HTML for? What does the lang attribute in HTML do?
The above is the detailed content of How to use html blockquote tag? Detailed explanation of the function of html blockquote tag. For more information, please follow other related articles on the PHP Chinese website!