Open In App

How to specify a text which is an extended quotation in HTML ?

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.

Syntax:



<blockquote> Contents... </blockquote>

Example 1:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        How to specify a text which 
        is an extended quotation?
    </title>
</head>
  
<body>
    <h1 style="color:green;">
        GeeksforGeeks
    </h1>
  
    <h3>
        How to specify a text which 
        is an extended quotation?
    </h3>
  
    <blockquote>
        GeeksforGeeks: A computer 
        science portal for geeks
    </blockquote>
</body>
  
</html>

Output:



Example 2: In this example, we will add the cite attribute. The cite attribute holds the URL that specifies the source of the quotation.




<!DOCTYPE html>
<html>
  
<head>
    <title>
        How to specify a text which
        is an extended quotation?
    </title>
</head>
  
<body>
    <h1 style="color:green;">
        GeeksforGeeks
    </h1>
  
    <h3>
        How to specify a text which
        is an extended quotation?
    </h3>
  
    <blockquote cite = "www.geeksforgeeks.org">
        GeeksforGeeks: A computer
        science portal for geeks
    </blockquote>
</body>
  
</html>

Output:


Article Tags :