Open In App
Related Articles

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

Improve Article
Improve
Save Article
Save
Like Article
Like

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:


Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 30 Sep, 2020
Like Article
Save Article
Previous
Next
Similar Reads
Complete Tutorials