Open In App

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

Last Updated : 30 Sep, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

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:

HTML




<!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.

HTML




<!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:



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads