Computer >> Computer tutorials >  >> Programming >> HTML

How to use blockquote in HTML?


The <blockquote> tag is to indicate long quotations. It should contain only block-level elements within it and not just plain text. It specifies a section quoted from another source and contains only block-level elements.

The <blockquote> tag also has an attribute, cite, which is used to specify the source of the quotation you mention in the HTML document.

How to use blockquote in HTML?

Example

You can try to run the following code to learn how to use blockquote in HTML

<!DOCTYPE html>
<html>
   <head>
      <title>HTML blockquote tag</title>
   </head>

   <body>
      <h1>Drupal</h1>
      <p>Here is a quotation from Drupal’s official website</p>
      <blockquote cite="https://drupal.org">The Drupal project is open source software.
         Anyone can download, use, work on, and share it with others. It's built on
         principles like collaboration, globalism, and innovation.</blockquote>
   </body>
</html>

Output

How to use blockquote in HTML?