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 the following result −

Global Attributes

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

Specific Attributes

The HTML <q> tag also supports the following additional attributes −

Attribute Value Description
cite URL URL 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

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements