This tutorial will inform you about <q> tag. The <q> tag is used for indicating short quotation including lines or paragraph. This tag represnts the section of text which is quoted from any other resource. We can use multiple <q> tag in our document as per requirement. This tag must have start and end tag. Most browsers indent text from both (left and right) margins but we don't use this tag to indent text. The text from <q> tag renders with paragraph breaks. We don't require paragraph breaks for short quotes we use <q> tag. If multiple lines are to be quoted we use <blockquote> tag.
The <q> tag has only one specific attribute cite. This attribute indicates the fully qualified url of the quote from where it is taken.
|<q cite="url"> Text Here </q>|
<title>Example of q tag</title>
<body>This is q tag implementation.<br><pre>
In this tutorial we will learn HTML5
q tag with the help of example.
Here you will find demo and example of
HTML5 q tag. You will be needing latest HTML5
supported browser to test the application..</q>
Difference between html4.01 and html5:
Posted on: September 14, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles