Slide 1
Slide 2
Slide 3

Short Quotation Vs Block level Quotation tag in HTML5 (HTML-V33)

No Comments

6. Short Quotation vs Block-level Quotation tag

Short Quotation, or the <q> tag, is used to define a short (or inline) quotation in HTML. Browsers usually add quotation marks (“ ”) around the text automatically.

The <blockquote> tag is used to display a long quotation. It should contain only block-level elements, not just plain text. It marks a section of text quoted from another source, with only block-level elements inside. You can also use the cite attribute on the <blockquote> tag to give the source of the quotation as a URL. The URL in cite is not shown in the browser (it is meant for developers or search engines).

Source Code:

Copied!
<!DOCTYPE html>
<html>
<head>
    <title>Quotation Example</title>
</head>
<body>

   <h2>Blockquote and Q Combined</h2>

   <!-- Short quotation using <q> -->
   <p>Teacher said: <q>Practice makes perfect.</q></p>

   <!-- Long quotation using <blockquote> -->
   <blockquote cite="https://www.example.com">
      <p>
         Education is the most powerful weapon which you can use to change the world.
      </p>
   </blockquote>

   <p>Education is the key to a better future.</p>

</body>
</html>

Result:  

Watch the video:

Ebook: https://softkhpc.blogspot.com/2026/11/html-tutorial-beginners.html

back to top