View video tutorial

HTML <q> Tag


The <q> tag is used for a short quotation.

HTML <q> Tag

The <q> element defines some text bound by short quotes, indicating that the text was quoted by someone.

The <q> element is an inline element, so it does not create paragraphs with some indentations where <blockquote> does.

Element Attributes

Attribute Value Description
cite url This specifies the url of the quotation.

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.


  <p>When Maria asks Ana to open it, Ana answers: <q cite="#">I'm sorry, Maria. I'm afraid I can't do
Try it Now »

Click on the "Try it Now" button to see how it works.