<q>

Description

This element causes text to be marked by the browser as a quotation. The <blockquote> element is more appropriate for long quotations.

The <q> denotes content quoted from another source. The cite attribute is used to specify the URL of the source document.

Example


<!DOCTYPE HTML> 
<html> 
    <head> 
        <title>Example</title> 
    </head> 
<body> 
   <q cite="http://en.wikipedia.org/wiki/United_States">
   The <dfn title="USA">USA</dfn> 
   is a federal constitutional republic 
   comprising fifty states and a federal district.</q>
</p> <!-- w ww .  j  a  va2 s . c  o  m-->
</body> 
</html>

Click to view the demo

The code above generates the following result.

q




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference