Description
The word BDO stands for Bi-Directional Override.
HTML element <blockquote>
is used to define content that is quoted from another source, which is usually lengthy and extends to multiple lines on the display.
For short quotations, we can use the <q> element to define inline quotations.
The below table summarizes its usage.
Usage Details | |
Placement | It is displayed as a Block element. |
Contents | It can contain Block elements, Inline elements, and text. |
Tags | Both opening and closing tags are required. |
Versions | HTML 2, 3.2, 4, 4.01, and 5 |
Syntax
<blockquote cite="URL">...</blockquote>
Optional attribute cite="URL"
to set the source URL of the quotation.
Examples
In the below example, the third student's name is in Arabic which is read from right to left. which is different from the first two student names.
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<h1>HTML Element - blockquote</h1>
<blockquote cite="URL">This is an example of a long quotation that may extend to multiple lines on the display.</blockquote>
</body>
</html>
Attributes
The following table shows the list of supported and unsupported attributes for the <b>
tag.
Attribute Type | Details |
Tag-Specific Attributes | The tag <blockquote> supports the below tag-specific attributes.
|
Global Attributes | Like all other HTML tags, the tag <blockquote> supports the HTML Global Attributes. |
Event Attributes | The tag <blockquote> also supports the HTML Event Attributes. |
Browser Compatibility
The tag <blockquote>
is supported in all modern browsers.
- Google Chrome 1+
- Internet Explorer or Edge 2+
- Firefox 1+
- Apple Safari 1+
- Opera 2.1+