content logo

Learn HTML:

Html q tag

The <q> tag defines a short inline quotation. It differs from <blockquote>, which is a block-level element used for longer quotations.

The following table summarizes the usages context and the version history of this tag.

<p>John said, <q>He loves Star Wars movies.</q></p>

Tag-Specific Attributes

The following table shows the attributes that are specific to the <q> tag.

Attribute Value Description
cite URL Specifies the URL that designates a source document or message for the information quoted.

HTML Q Example




HTML Q Tutorial