Skip to content
Related Articles

Related Articles

Improve Article

HTML <blockquote> Tag

  • Difficulty Level : Medium
  • Last Updated : 05 Feb, 2021

The <blockquote> tag in HTML is used to display the 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 tag, we can use elements like heading, list, paragraph, 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 specify the section that is quoted from other source.
 

Syntax: 

<blockquote> Contents... </blockquote>

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

The below examples illustrate the blockquote tag:
 
Example 1:



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: 

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
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :