The HTML <q> tag is used for indicating short quotations (i.e. quotations that span multiple lines). 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. |
Example
You can try to run the following code to implement <q> tag in HTML −
<!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>