Summary -

In this topic, we described about the <q> tag along with detailed example.

Short quotation in the HTML documents. Quote element is used to define the short quotation. Quote element uses <q> tag. Any text in between <q>..</q> defines it as short quotation to browsers.

<q> element is nested element. Browsers will insert quotations around <q> elements. <q> tag is mostly used for short quotations that are displayed in a normal paragraph. Browsers will insert quotation marks around the quotation.

Syntax -

<q>Quote text here </q>

Optional Attributes -

AttributeDescriptionValues
citeSpecifies the source URL of the quoteURL.

Example -

<!DOCTYPE html>
<html>
<head>
	<title> Quotation element example.. </title>
</head>
<body>
	<p><q> TutorialCampus’s</q> objective is to deliver the point
	 to point online content on various technologies (including 
	 technical and non-technical) to encourage the reader to learn 
	 and gain expertise on their desired skills without any conditions
	  and restrictions..</p>
</body>
</html>

Output -

TutorialCampus’s objective is to deliver the point to point online content on various technologies (including technical and non-technical) to encourage the reader to learn and gain expertise on their desired skills without any conditions and restrictions..