HTML <blockquote> tag is used to define a block of text which is quoted from another source. The Browser usually displays the content within <blockquote> tag as indented text.

If you want to insert a long quote then use <blockquote> and for short or inline quote use <q> tag.

Syntax

<blockquote> quoted text......</blockquote>  

Following are some specifications about the <blockquote> tag

DisplayBlock
Start tag/End tagBoth start and End tag
UsageSemantic/textual

Example

<!DOCTYPE html>  

<html>  

<head>  

    <title>Blockquote tag</title>  

</head>  

<body>  

    <h2>Example of blockquote tag</h2>  

    <p>A Great Motivational Quote :</p>  

   <blockquote cite="https://www.brainyquote.com/authors/erin_cummings">  

    <p>  

     At the end of the day, you are solely responsible for your success and your failure. And the sooner you realize that, you accept that, and integrate that into your work ethic, you will start being successful. As long as you blame others for the reason you aren't where you want to be, you will always be a failure.  

     </p>  

   </blockquote>  

<cite>Erin Cummings</cite>  

</body>  

</html>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *