Open In App
Related Articles

HTML <blockquote> Tag

Improve Article
Improve
Save Article
Save
Like Article
Like

The <blockquote> tag in HTML is used to display long quotations (a section that is quoted from another source). It changes the alignment to make it unique from others. It contains both opening and closing tags. In blockquote tags, we can use elements like headings, lists, paragraphs, etc.

Note: The <blockquote> tag in HTML4.1 defines the long quotation i.e. quotations that span multiple lines. But in HTML5, the <blockquote> tag specifies the section that is quoted from other sources.
 Syntax: 

<blockquote> Contents... </blockquote>

Attribute: It contains a single attribute cite which is used to specify the source of the quotation.

Example 1: This example illustrates the blockquote tag

HTML




<!DOCTYPE html>
<html>
  <body>
    <h1>GeeksforGeeks</h1>
    <h2><blockquote> Tag</h2>
    <!--blockquote Tag starts here -->
    <blockquote cite=
  
    <p>
        HTML stands for HyperText Markup Language. It 
        is used to design web pages using a markup language.
        HTML is the combination of Hypertext and Markup language.
        Hypertext defines the link between the web pages. A
        markup language is used to define the text document within 
        tag which defines the structure of web pages.
      </p>
  
    </blockquote>
    <!--blockquote Tag ends here -->
  </body>
</html>

Output: 

Example 2: This example illustrates the blockquote tag

HTML




<!DOCTYPE html>
<html>
  
<body>
    <h1>GeeksforGeeks</h1>
    <h2> <blockquote> Tag</h2>
  
    <p>This is blockquote Tag text with attribute cite</p>
  
    <!--blockquote Tag starts here -->
    <blockquote cite="www.geeksforgeeks.org">
        GeeksforGeeks:A computer science portal for geeks
    </blockquote>
    <!--blockquote Tag ends here -->
</body>
</html>

Output: 

Supported Browsers: 

  • Google Chrome
  • Edge 12 and above
  • Internet Explorer
  • Firefox 1 and above
  • Safari
  • Opera

Last Updated : 07 Jun, 2023
Like Article
Save Article
Similar Reads