Skip to content
Related Articles
Open in App
Not now

Related Articles

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

Improve Article
Save Article
  • Last Updated : 30 Sep, 2020
Improve Article
Save Article

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:


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!