Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

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

  • Last Updated : 30 Sep, 2020

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:

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

<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
Recommended Articles
Page :