Long quotes use blockquote, short quotes Use q, and references use cite. In practice, we usually only use blockquote and q. According to the HTML specification, there are three elements used to reference the content, that is, & lt; blockquote & gt; & lt; q & gt; & lt; cite & gt ;. In reality, blockquote is still used for the use of these tags. q is used for short quotes and cite is used for references. In practice, we usually only use blockquote and q.
According to the HTML specification, there are three elements used to reference the content, that is
. In reality, the use of these labels is still relatively small, so what labels should you use when you actually apply them? You must be familiar with their semantics.
Blockquote is the reference of the content. The content must contain block-level elements, such as titles, lists, paragraphs, or p tags. This element can also have a location specified by the optional attribute cite (In URI format), for example:
A large quotation. The content of a blockquote element must include block-level elements such as headings, lists, paragraphs or p's.
Cite can be used to specify the location (in the form of a URI) where the quote has come from.
A label can define a short reference.Tags are essentially
Is the same. The difference lies in their display and application.
The label is used for short in-row Reference.
Bob saidSexy pyjamas
But Chris saidA kimono
AlthoughIt has almost never been used. It has some useful attributes. For exampleSpecifies the appearance quotation mark. This is allowed
Q {}
Q {quotes :'»''«'}
Q {quotes: '...'}
It looks good, but the entire series of IE does not support it, even the latest IE8. Jumbo ~~
Use this label to define references, such as titles of books or magazines. For example:
AndBobSaidNo, I think it's a banana
.
Summary:
Long reference
Use short quotation marks
, References. In practice
And
.