How to use blockquote in HTML?

HTMLWeb DevelopmentFront End Technology

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.

Example

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

Live Demo

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

   <body>
      <h1>Drupal</h1>
      <p>Here’s a quotation from Drupal’s official website</p>
      <blockquote cite="http://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>
raja
Published on 18-Jan-2018 10:58:58
Advertisements