Summary -
In this topic, we described about the <blockquote> tag along with detailed example.
Blockquote element is used to define a quote section. The <blockquote> tag is used to indicate long quotations. Blockquote element uses <blockquote> tag.
Any text in between <blockquote>..</blockquote> defines as blockquote section to browsers. <blockquote> element is nested element. Browsers will take care of <blockquote> indentation.
<q> tag can be used, if short quote needs to be displayed within a normal paragraph. The <blockquote> tag defines a long quotation in HTML 4.01. The <blockquote> tag specifies a section that is quoted from another source in HTML5.
Syntax -
<blockquote>.. text here.. </blockquote>
Optional Attributes -
Attribute | Description | Values |
---|---|---|
cite | Specifies the link to the source of the quotation. | URL. |
Example -
<!DOCTYPE html>
<html>
<head>
<title> Blockquote element example.. </title>
</head>
<body>
<blockquote> TutorialsCampus objective is to deliver the point
to point online content on various technologies (including
technical and non-technical)to encourage the reader to learn and
gain expertise on their desired skills without anyconditions and
restrictions... </blockquote>
</body>
</html>
Output -
TutorialsCampus objective is to deliver the point to point online content on various technologies (including technical and non-technical) to encourage the reader to learn and gain expertise on their desired skills without any conditions and restrictions...