How to display a short quotation in HTML?

HTMLWeb DevelopmentFront End Technology

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 −

AttributeValueDescription
citeURLURL 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 −

 Live Demo

<!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>
raja
Published on 13-Mar-2018 08:32:59
Advertisements