Open In App

How to add section that is quoted from another source using HTML?

Last Updated : 19 Jun, 2024
Comments
Improve
Suggest changes
Like Article
Like
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: The example below shows how to add a section that is quoted from another source using <blockquote> tag .

HTML
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" 
          content="width=device-width, initial-scale=1.0">
    <title>Blockquote Tag</title>
</head>

<body>

    <blockquote>
        GeeksforGeeks: A computer
        science portal for geeks
    </blockquote>
</body>

</html>

Output:

quotedtext

Output

Example 2: The example below shows how to add a section that is quoted from another source using HTML.

HTML
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" 
          content="width=device-width, initial-scale=1.0">
    <title>Blockquote Element</title>
</head>

<body>
    <h5 style="color:green;">
        The text below is wrapped inside 
      	blockquote element with attribute cite
    </h5>

    <blockquote cite="www.geeksforgeeks.org">
        GeeksforGeeks:A computer
        science portal for geeks
    </blockquote>
</body>

</html>

Output:

blockquoted

Supported Browsers

  • Google Chrome: 129
  • Firefox: 130
  • Safari: 17.6
  • Opera: 110


Next Article

Similar Reads