The HTML Blockquote Tag <blockquote> is used to classify a section which is quoted or taken from another resource.
HTML Blockquote Tag can be used whenever we wish to quote text or information from other resource.
HTML Blockquote tag is a closed tag and needs closing HTML Blockquote Tag </blockquote>.
Note: Browsers usually tend to indent the elements and text within the Blockquote HTML Tag.
HTML Blockquote Tag Syntax
<blockquote cite=”URL”> Some text from other resource </blockquote>
HTML Blockquote Tag Example
HTML Blockquote Tag Code | Output |
</pre> <h1>Computer</h1> <pre> Below is the quote from Wikipedia Website on Computer</pre> <blockquote cite="http://www.en.wikipedia.org/wiki/Computer"> <a href="http://www.en.wikipedia.org/wiki/Computer"> http://www.en.wikipedia.org/wiki/Computer </a> A computer is a general purpose device that can be programmed to carry out a finite set of arithmetic or logical operations. Since a sequence of operations can be readily changed, the computer can solve more than one kind of problem.</blockquote> <pre> |
Computer Below is the quote from Wikipedia Website on Computer
|
The above HTML Blockquote Tag example renders the text (taken from Wikipedia Website) in a indented form as we have wrapped the content in HTML 5 Blockquote Tag.
Also, note the usage of the Blockquote HTML Tag’s Cite Attribute.
HTML Blockquote Tag Attributes
HTML Blockquote Tag Attribute | Value | Description |
cite | URL | Defines the location of the resource being quoted. |
HTML Blockquote Tag support all HTML Global Attributes and HTML Event Attributes
HTML Blockquote Tag Supporting Browsers
S. No. | Browser | Supported(Yes/No) |
1 | Internet Explorer | Yes |
2 | Firefox | Yes |
3 | Google Chrome | Yes |
4 | Opera | Yes |
5 | Safari | Yes |