Quotes
In this lesson, we'll learn how to add various kinds of quotes in HTML.
We'll cover the following
In documents, especially in publications, we often use and quote external sources. In HTML two tags, <q>
and <blockquote>
can be used to mark these citations.
In the previous chapter, you tangentially learned about the <q>
tag, as a way of formatting text.
To be more precise, <q>
is a simpler text formatting tag, as it adds a special semantic to its content: this is a quotation that comes from another source.
While <q>
is an inline tag, <blockquote>
defines a block (section) of citation. Both elements have a cite attribute that specifies the URL pointing to the source of the quotation.
The Listing below shows a short example of these tags.
Listing: Using quotes
Get hands-on with 1400+ tech skills courses.