HTML quotation elements are used to integrate quoted text passages from other sources into a website. Depending on the scenario, you can use <blockquote>, <q>, <cite> or cite. The advantage of HTML quotation elements is that they break up con­tinu­ous text, enhance search engine op­tim­isa­tion and improve content delivery.

What are HTML quotation elements?

HTML quotation elements are special HTML tags that are used to mark and display quo­ta­tions in HTML documents. The two most important HTML tags for quo­ta­tions are the <blockquote> tag and the <q> tag. There is also a third al­tern­at­ive, the <cite> tag or cite attribute, which is spe­cific­ally suited for citing sources. Much like HTML lists and HTML tables, adding quo­ta­tions in HTML is a great way to avoid walls of text and make content more engaging.

Using tags not only enhances the visual appeal of texts but also improves the document’s semantic structure. This helps search engines and other web tech­no­lo­gies better interpret and process the meaning of quotes, which ul­ti­mately boosts content dis­cov­er­ab­il­ity and ac­cess­ib­il­ity.

Web hosting
The hosting your website deserves at an un­beat­able price
  • Loading 3x faster for happier customers
  • Rock-solid 99.99% uptime and advanced pro­tec­tion
  • Only at IONOS: up to 500 GB included

What are the different ways to create quo­ta­tions in HTML?

How exactly you integrate a quotation into your HTML documents depends on which tag you choose. In the following sections, we‘ve sum­mar­ised the three possible variants for you and provided some examples as well.

<q> tag

The <q> tag in HTML allows quotes to be in­teg­rated into text and marked with quotation marks. This way, you don’t need to interrupt the con­tinu­ous text and can visually highlight the directly or in­dir­ectly quoted text for readers. Since quotation marks are auto­mat­ic­ally added at the beginning and end of the quoted passage when using the <q> tags, there is no need to manually insert them. Quotes with <q> tags are typically used for shorter text passages or direct speech, where the con­tinu­ity of the text remains un­in­ter­rup­ted.

The following example shows the syntax:

<p>Here is the text <q>Here is a quote</q></p>
html
Register your domain name
Launch your business on the right domain
  • Free WordPress with .co.uk
  • Free website pro­tec­tion with one Wildcard SSL
  • Free Domain Connect for easy DNS setup

<blockquote> tag

Block quotes are quo­ta­tions that stand out through an indented paragraph or a thin border. To dif­fer­en­ti­ate a passage from the main text, use the <blockquote> tag. This helps break up text, avoiding large, mono­ton­ous blocks, while em­phas­ising key points and sup­port­ing important state­ments with direct quotes. Ad­di­tion­ally, by using various design elements, you create a text structure that is SEO-friendly. Block quotes are typically used for longer quo­ta­tions, but they can also be used to visually emphasise a sentence that is important or links.

The main function of the <blockquote> tag is to instruct browsers to visually mark text elements. How the block­quote is ul­ti­mately formatted may vary depending on the browser. If you want to define the form of a block­quote, you can use HTML at­trib­utes or CSS in­struc­tions such as padding for the inner spacing of the text, border for the thickness and colour of the border or address for the font colour.

Syntax:

<p>Below is the corresponding quote</p>
<blockquote>
‘Here is the quote’.
</blockquote>
html

<cite> or cite

When quoting, it’s not only important to mark the text as a quote, but also to provide the source whenever possible. This ensures that readers can im­me­di­ately un­der­stand where a quote comes from. This is not only part of good quoting style, but also enhances your cred­ib­il­ity and trans­par­ency. For both <q> and <blockquote> tags, you can use either the cite attribute or the <cite> element:

HTML attribute cite

The cite attribute is used to specify sources of a citation as a reference. It is used for block quo­ta­tions in par­tic­u­lar and is usually not displayed by the browser if the in­form­a­tion is useful for other tech­no­lo­gies such as screen readers or SEO bots.

Syntax:

<p>Below is the corresponding quote</p>
<blockquote cite="https://example.com/source">
‘Here is the quote’.
</blockquote>
html

The source could appear as follows in the text:

‘Here is a quote’. - Source: https://example.com/source

HTML <cite>

The HTML element <cite> is used to emphasise the title of a cited work within the text, typically by dis­play­ing it in italics. Clearly identi­fy­ing your ref­er­ences and ensuring proper citation enhances trans­par­ency, improves trace­ab­il­ity and adds cred­ib­il­ity to your work.

Syntax:

<p>The quote is from <cite>source</cite></p>
html

In the text, the citation could appear as follows:

‘The quote is from (source reference)’.

Tip

Want to learn more about the basics of HTML and different ways to use the markup language? Then check out our HTML beginner’s tutorial.

Go to Main Menu