HTML <q> Tag

Description

The <q> HTML element is used to highlight quotes in the text. The contents of the container are automatically displayed in quotation marks in the browser.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
Block, inline and text
Start/End Tags
Start tag: required, End tag: required

Example

<q>You can only be young once. But you can always be immature.</q> (Dave Barry)

Attributes

Attribute Definition
cite Indicates the source of the quotation.

Global Attributes

The <q> tag also supports the Global Attributes in HTML5

Event Attributes

The <q> tag also supports the Event Attributes in HTML5

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
YesYesYes1YesYes
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes4YesYesYes

Last updated by CSSPortal on: 6th December 2019