Tutorialspoint.dev

HTML | blockquote Tag

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>

Attribute: It contains single attribute cite which is used to specify the source of quotation.

Note: The <blockquote> tag in HTML4.1 defines the long quotation i.e. quotations that span multiple lines. But in HTML5, the <blockquote> tag specify the section that is quoted from other source.

Example 1:



<!DOCTYPE html>
<html>
    <head>
        <title>blockquote Tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><blockquote> Tag</h2>
        <blockquote>GeeksforGeeks: A computer science portal 
        for geeks</blockquote>
    </body>
</html>                    


Output:

Example 2:

<!DOCTYPE html>
<html>
    <head>
        <title>blockquote Tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><blockquote> Tag</h2>
        <blockquote cite = "www.geeksforgeeks.org">GeeksforGeeks:
        A computer science portal for geeks</blockquote>
    </body>
</html>                    

Output:

Supported Browser: The browser supported by <blockquote> tag are listed below:

  • Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


This article is attributed to GeeksforGeeks.org

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter