Measure the test taker's knowledge about the commonly used HTML tags _ HTML/Xhtml _ webpage for reference in webpages.

Source: Internet
Author: User
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 pyjamasBut 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 .

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.