Advertisement
❮ Previous: <progress> Next: <rp> ❯

<q>

HTML <q> (Quote) Tag

Example

<p>The World Health Organization (WHO) is a <q>specialized agency of the United Nations responsible for international public health.</q></p>

Try this code ❯

Meaning

The <q> element specifies that the enclosed text is a short inline quotation.

This element is intended for short quotations that don’t require paragraphs or larger structures, as compared to text that would be contained within <blockquote>.

Note: Most browsers will wrap inline quotations in quote marks. These can be controlled by style rules.

Version: HTML 4, 4.01, 5


Standard Syntax

<q cite="URL">Quote</q>


Advertisement

Attributes

Attribute Value Description
cite URL Specifies the address in the quotation source.

Global Attributes

<q> element also supports the Global Attributes in HTML.


Event Attributes

<q> element also supports the Event Attributes in HTML.


By Default CSS Value(s)

Most of the browsers will display the <q> element with the following by default value(s)

q { 
  display: inline;
}

q:before { 
  content: open-quote;
}

q:after { 
  content: close-quote;
}

Related Tags:

<a>,
<abbr>,
<b>,
<bdi>,
<bdo>,
<br>,
<cite>,
<code>,
<data>,
<dfn>,
<em>,
<i>,
<kbd>,
<mark>,
<rp>,
<rt>,
<ruby>,
<s>,
<samp>,
<small>,
<span>,
<strong>,
<sub>,
<sup>,
<time>,
<u>,
<var> and
<wbr>

❮ Previous: <progress> Next: <rp> ❯
Advertisement