HTML <q> Tag

Advertisements


Description

The HTML <q> tag is used for indicating short quotations (i.e. quotations that span multiple lines).

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML q Tag</title>
</head>
<body>
Here comes a short quotation: <q> here is a short quotation </q>
</body>
</html>

This will produce following result:

Here comes a short quotation: here is a short quotation

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Specific Attributes

The HTML <q> tag also supports following additional attributes:

AttributeValueDescription
citeURLURL of the quote, if it is taken from the web.

Event Attributes

This tag supports all the event attributes described in - HTML Events Reference

Browser Support

ChromeFirefoxIEOperaSafariAndroid
YesYesYesYesYesYes

html_tags_reference.htm