HTML q element

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

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

The mission of this website is To teach the HTML in an easy way with a new updated version of HTML.

Tag Uses

Specific uses of <q> tag

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.

<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.

Tag Attributes

Attributes that are applicable to <q> tag
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.web4college.com">to teach the HTML in an easy way with a new updated version of HTMl.</q></p>


Was this article helpful?