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

寻∝梦
Release: 2018-08-16 17:41:01
Original
6077 people have browsed it

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:

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.
Copy after login

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

Thetag 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:

here is a long quotation here is a long quotation

Copy after login

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!

source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!