HTML q element

Htm <q> tag applies quotes on the reference content from another source. q applies quotation marks (“”) before and after the paragraph.

Example


<p>The mission of this <cite>website</cite> is <q cite="http://www.codingb.com">To teach the HTML in an easy way with a new updated version of HTML.</q></p>
Try </>

Specific Uses

q should only be used for the quotations. It should not be used for the presentational purposes (other than quotations). In the following example, quotation marks should be used instead of the q element.

Example

<p>The word "HTML" means hyper text markup language.</p>

Try </>

Tag omission

Both starting and ending tags are necessary for the q element.

Global Attributes

All the global attributes are applicable on q element.

Specific Attributes

AttributesDescription
cite cite attribute contains the address of the content which is quoted from another resource. Such citation link is for private use by the browsers.
<p>The purpose of this website is <q cite="http://www.codingb.com">to teach the HTML in an easy way with a new updated version of HTMl.</q></p>


Was this article helpful?

 

Email:

Message:

Get the newsletter