Home >Web Front-end >HTML Tutorial >How to use html blockquote tag? Detailed explanation of the function of html blockquote tag

How to use html blockquote tag? Detailed explanation of the function of html blockquote tag

寻∝梦
寻∝梦Original
2018-08-16 17:41:016197browse

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 the tag.

html The definition and usage of blockquote tag:

Tag: Define block quote.

All text between

and
is 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:

How to use html blockquote tag? Detailed explanation of the function of html blockquote tag

tag and tag both mean "quote"

The difference between

tag and tag:

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. The tag is used for brief inline quotations. If you need to separate a longer section from surrounding content (usually shown as an indented block), use the
tag.

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?

#What are the new structural elements in HTML5? Usage of new structural elements in HTML5 (recommended)

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn