HTML <blockquote> tagS2C Home   « HTML <blockquote> tag

Definition

The <blockquote> tag is used to define long quotations.

Example


<blockquote>Text will be be indented and have whitespace above and below.</blockquote>

Required Attributes

NONE

Optional Attributes

cite - specifies a URL pointing to the source of the quotation.


<blockquote cite="aURL">Some text here</blockquote>

Common Attributes

class - specifies a classname for the element allowing you to apply the style of the predefined class to the content.


<blockquote class="classname">Some text here</blockquote>

id - specifies a unique id for the element allowing you to apply the style of the predefined id to the content.


<blockquote id="idname">Some text here</blockquote>

style - specifies an inline style for the element allowing you to apply the style to the content.


<blockquote style="color:red;text-align:left">Some text here</blockquote>

title - specifies extra information about the content.


<blockquote title="information about the content">Some text here</blockquote>

Language Attributes

dir - specifies the directional flow of the content.


<!-- The text will flow from left to right -->
<blockquote dir="ltr">Some text here</blockquote>

<!-- The text will flow from right to left -->
<blockquote dir="rtl">Some text here</blockquote>

lang - specifies a language code for the content of the element.


<blockquote lang="en">Some text here</blockquote>

xml:lang - specifies a language code for the content of the element in XHTML documents.


<blockquote xml:lang="fr">Some text here</blockquote>

Document Event Attributes

NONE

Form Event Attributes

NONE

Image Event Attributes

NONE

Keyboard Event Attributes

onkeydown - The JavaScript code to be run when an element is in focus and keyboard key is pressed.


<!-- Executes the go() function -->
<blockquote onkeydown="go()">Some text here</blockquote>

onkeypress - The JavaScript code to be run when an element is in focus and keyboard key is pressed down and released.


<!-- Executes the go() function -->
<blockquote onkeypress="go()">Some text here</blockquote>

onkeyup - The JavaScript code to be run when an element is in focus and keyboard key is released.


<!-- Executes the go() function -->
<blockquote onkeyup="go()">Some text here</blockquote>

Mouse Event Attributes

onclick - The JavaScript code to be run when a mouse is clicked on the element.


<!-- Executes the go() function -->
<blockquote onclick="go()">Some text here</blockquote>

ondblclick - The JavaScript code to be run when a mouse is double clicked on the element.


<!-- Executes the go() function -->
<blockquote ondblclick="go()">Some text here</blockquote>

onmousedown - The JavaScript code to be run when the mouse button is pressed down while the cursor is over the element.


<!-- Executes the go() function -->
<blockquote onmousedown="go()">Some text here</blockquote>

onmousemove - The JavaScript code to be run when the mouse button is moved.


<!-- Executes the go() function -->
<blockquote onmousemove="go()">Some text here</blockquote>

onmouseout - The JavaScript code to be run when the mouse cursor moves off an element.


<!-- Executes the go() function -->
<blockquote onmouseout="go()">Some text here</blockquote>

onmouseover - The JavaScript code to be run when the mouse cursor moves over an element.


<!-- Executes the go() function -->
<blockquote onmouseover="go()">Some text here</blockquote>

onmouseup - The JavaScript code to be run when the mouse button is released while the cursor is over the element.


<!-- Executes the go() function -->
<blockquote onmouseup="go()">Some text here</blockquote>

go to home page Homepage go to top of page Top