Home > Web Front-end > HTML Tutorial > Note on blockquote tag application_HTML/Xhtml_Web page production

Note on blockquote tag application_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:45:59
Original
1565 people have browsed it

Regarding semantics, it cannot be explained clearly in one or two sentences, and there is currently no official and strict definition. What is not controversial about
is:
1. Quote a long text
2. You can use cite tags or attributes
The question is: Does the text quoted by
have to be included using block-level elements?
First is the explanation from W3C
9.2.2 Quotations: The BLOCKQUOTE and Q elements -- %coreattrs, %i18n, %events -- cite
%URI;
#IMPLIED -- URI for source document or msg -- > -- short inline quotation --> -- %coreattrs, % i18n, %events -- cite
%URI;
#IMPLIED -- URI for source document or msg -- >
The contents contained in these two notes are quoted text. BLOCKQUOTE is used for long text quotations (block-level content) and Q is used for short text quotations (inline content) and does not allow incomplete quotation sentences.
The text for this example comes from "The Two Towers", by J.R.R. Tolkien, the most cited text.

They went in single file, running like hounds on a strong scent, and an eager light was in their eyes. Nearly due west the broad swath of the marching Orcs tramped its ugly slot; the sweet grass of Rohan had been bruised and blackened as they passed.


This article is developed using web standards. It mentions the semantics of some TAGS. The following excerpt is

For longer quotations that form one or more paragraphs, the
element should be used. CSS can then be used to style the quotation. Note that text is not allowed directly inside a
element – ​​it must be contained in an element, usually a

element.
Example:

“The following sections discuss issues surrounding the structuring of text. Elements that present text (alignment elements, font elements, style sheets, etc. ) are discussed elsewhere in the specification. For information about characters, please consult the section on the document character set."


http://24ways.org/advent/transitional-vs-strict-markup
This article is about transitional-vs-strict, the difference between transitional and standard xhtml. It mentions the difference between content models and about
. In strict, the referenced content must use block level The element contains it, usually

,

.
Content model differences
An element type's content model describes what may be contained by an instance of the element type. The most important difference in content models between Transitional and Strict is that blockquote, body, and form elements may only contain block level elements. A few examples:
text and images are not allowed immediately inside the body element, and need to be contained in a block level element like p or div
input elements must not be direct descendants of a form element
text in blockquote elements must be wrapped in a block level element like p or div
So, I think that in the strict type, you must use block-level elements to include the quoted text, but in the non-strict type, it is not necessary. However, it is recommended to do this because the strict type document is more strict and can be considered backward compatible. .
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template