An in-line quote. Used for small quotations. The HTML <q> tag is used for indicating short quotations (i.e. quotations that needs to display within a non-quoted paragraph).

Browsers generally surround <q> text with quotation marks. If your quotation spans multiple lines, you should use the <blockquote> tag. Most browsers surround blockquote text as indented text.

Required Attributes

  • None.

Optional Attributes

  • cite can be used to specify the location (in the form of a URI) where the quote has come from.
  • Common attributes

Example

<p>
	I said <q>that we can use the "quote" tag</q> but my colleague said that <q>blockquote is the best one to use</q>. I am confused. </p>
</p>

Changes in HTML5

  • None.

Related Tags