Related Articles

Related Articles

HTML | blockquote Tag
  • Difficulty Level : Medium
  • Last Updated : 17 Jul, 2019

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:



filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>                    

chevron_right



Output:

Example 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>                    

chevron_right


Output:

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

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

full-stack-img




My Personal Notes arrow_drop_up
Recommended Articles
Page :