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

Definition

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

Example


<p>Paragraph above.</p>
<blockquote>Blockquote text will generally be indented and have whitespace above and below.</blockquote>
<p>Paragraph below.</p>

Paragraph above.

Blockquote text will generally be indented and have whitespace above and below.

Paragraph below.

Attributes

The following attributes can be used with the <blockquote> tag.


<blockquote> Specific Attributes
Attribute Value Description Example
There are no required or optional attributes specific to the <blockquote> tag.
<blockquote> Global Attributes
Attribute Description Example
Common
classSpecifies a classname for the element allowing you to apply the style of the predefined class to the content.

<blockquote class="name">Quotation</blockquote>
idSpecifies a unique id for the element allowing you to apply the style of the predefined id to the content.

<blockquote id="name">Quotation</blockquote>
styleSpecifies an inline style for the element allowing you to apply the style to the content.

<blockquote style="color:red;">Quotation</blockquote>
titleSpecifies an inline style for the element allowing you to apply the style to the content.

<blockquote title="Content info">Quotation</blockquote>
Keyboard
accesskeySpecifies a keyboard shortcut to associate with the element.

<blockquote accesskey="a">Quotation</blockquote>
tabindexSpecifies a tab order for the element.

<blockquote tabindex="1">Quotation</blockquote>
Language
dirSpecifies the directional flow of the content.

<!-- The text will flow from left to right -->
<blockquote dir="ltr">Quotation</blockquote>
<!-- The text will flow from right to left -->
<blockquote dir="rtl">Quotation</blockquote>
langSpecifies a language code for the content of the element.

<blockquote lang="en">Quotation</blockquote>
spellcheckSpecifies an inline style for the element allowing you to apply the style to the content.

<!-- Valid values true and false. -->
<!-- Default inherited / browser specific. -->
<blockquote spellcheck="true">Quotation</blockquote> 
translateSpecifies an inline style for the element allowing you to apply the style to the content.

<!-- Valid values yes and no. -->
<!-- Default yes. -->
<blockquote translate="no">Quotation</blockquote> 
Miscellaneous
contenteditableSpecifies whether the content of the element is editable.

<!-- Valid values true and false. -->
<!-- Default inherited. -->
<blockquote contenteditable="true">Quotation</blockquote> 
draggableSpecifies whether the element is draggable.

<!-- Valid values true and false. -->
<!-- Default browser specific. -->
<blockquote draggable="true">Quotation</blockquote>
hiddenSpecifies whether the element is not yet, or no longer, relevant.

<!-- Valid values an empty string or hidden -->
<blockquote hidden>Quotation</blockquote> 
<blockquote hidden="hidden">Quotation</blockquote> 
<blockquote> Event Attributes
Attribute Description Example
Document Element
oncopyThe script to be run when the user copies the content of an element.

 <!-- Executes go() function -->
<blockquote oncopy="go()">Quotation</blockquote> 
oncutThe script to be run when the user cuts the content of an element.

 <!-- Executes go() function -->
<blockquote oncut="go()">Quotation</blockquote>
onpasteThe script to be run when the user pastes some content into an element.

 <!-- Executes go() function -->
<blockquote onpaste="go()">Quotation</blockquote>
Drag and Drop
ondragThe script to be run when an element is dragged.

 <!-- Executes go() function -->
<blockquote ondrag="go()">Quotation</blockquote>
ondragendThe script to be run when an element has stopped being dragged.

 <!-- Executes go() function -->
<blockquote ondragend="go()">Quotation</blockquote>
ondragenterThe script to be run when an element has been dragged to a valid drop target.

 <!-- Executes go() function -->
<blockquote ondragenter="go()">Quotation</blockquote>
ondragleaveThe script to be run when an element leaves a valid drop target.

 <!-- Executes go() function -->
<blockquote ondragleave="go()">Quotation</blockquote>
ondragoverThe script to be run when an element is being dragged over a valid drop target.

 <!-- Executes go() function -->
<blockquote ondragover="go()">Quotation</blockquote>
ondragstartThe script to be run at the start of a drag operation.

 <!-- Executes go() function -->
<blockquote ondragstart="go()">Quotation</blockquote>
ondropThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<blockquote ondrop="go()">Quotation</blockquote>
Form
onblurThe script to be run when the element loses focus.

 <!-- Executes go() function -->
<blockquote onblur="go()">Quotation</blockquote>
onchangeThe script to be run when object changed and attempt to leave field.

 <!-- Executes go() function -->
<blockquote onchange="go()">Quotation</blockquote>
oncontextmenuThe script to be run when a context menu is triggered.

 <!-- Executes go() function -->
<blockquote oncontextmenu="go()">Quotation</blockquote>
onfocusThe script to be run when the element gets focus.

 <!-- Executes go() function -->
<blockquote onfocus="go()">Quotation</blockquote>
oninputThe script to be run when an element gets user input.

 <!-- Executes go() function -->
<blockquote oninput="go()">Quotation</blockquote>
oninvalidThe script to be run when an element is invalid.

 <!-- Executes go() function -->
<blockquote oninvalid="go()">Quotation</blockquote>
onresetThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<blockquote onreset="go()">Quotation</blockquote>
onselectThe script to be run when some or all of the contents of an object are selected.

 <!-- Executes go() function -->
<blockquote onselect="go()">Quotation</blockquote>
onsubmitThe script to be run when a form is submitted.

 <!-- Executes go() function -->
<blockquote onsubmit="go()">Quotation</blockquote>
Keyboard
onkeydownThe script to be run when an element is in focus and keyboard key is pressed down.

 <!-- Executes go() function -->
<blockquote onkeydown="go()">Quotation</blockquote>
onkeypressThe script to be run when an element is in focus and keyboard key is pressed down and released.

 <!-- Executes go() function -->
<blockquote onkeypress="go()">Quotation</blockquote>
onkeyupThe script to be run when an element is in focus and keyboard key is released.

 <!-- Executes go() function -->
<blockquote onkeyup="go()">Quotation</blockquote>
Media
onabortThe script code to be run on abort.

 <!-- Executes go() function -->
<blockquote onabort="go()">Quotation</blockquote>
oncanplayThe script to be run when a file has buffered enough so it is ready to start playing.

 <!-- Executes go() function -->
<blockquote oncanplay="go()">Quotation</blockquote>
oncanplaythroughThe script to be run when a file can be played all the way to the end without further need of buffering.

 <!-- Executes go() function -->
<blockquote oncanplaythrough="go()">Quotation</blockquote>
oncuechangeThe script to be run when the cue changes when using the track element.

 <!-- Executes go() function -->
<blockquote oncuechange="go()">Quotation</blockquote>
ondurationchangeThe script to be run when the length of the media is changed.

 <!-- Executes go() function -->
<blockquote ondurationchange="go()">Quotation</blockquote>
onemptiedThe script to be run when a media resource element suddenly becomes empty, usually due to an error.

 <!-- Executes go() function -->
<blockquote onemptied="go()">Quotation</blockquote>
onendedThe script to be run when the media has reach the end.

 <!-- Executes go() function -->
<blockquote onended="go()">Quotation</blockquote>
onloadeddataThe script to be run when media data is loaded and playback can start.

 <!-- Executes go() function -->
<blockquote onloadeddata="go()">Quotation</blockquote>
onloadedmetadataThe script to be run when metadata has been loaded.

 <!-- Executes go() function -->
<blockquote onloadedmetadata="go()">Quotation</blockquote>
onloadstartThe script to be run whenthe media resource has started loading.

 <!-- Executes go() function -->
<blockquote onloadstart="go()">Quotation</blockquote>
onpauseThe script to be run when the media resource has been paused.

 <!-- Executes go() function -->
<blockquote onpause="go()">Quotation</blockquote>
onplayThe script to be run when the media resource starts playback.

 <!-- Executes go() function -->
<blockquote onplay="go()">Quotation</blockquote>
onplayingThe script to be run when when playback has already begun.

 <!-- Executes go() function -->
<blockquote onplaying="go()">Quotation</blockquote>
onprogressThe script to be run when the browser is fetching the media data.

 <!-- Executes go() function -->
<blockquote onprogress="go()">Quotation</blockquote>
onratechangeThe script to be run when the playback rate changes.

 <!-- Executes go() function -->
<blockquote onratechange="go()">Quotation</blockquote>
onseekedThe script to be run when the seeking attribute is set to false indicating that seeking has finished.

 <!-- Executes go() function -->
<blockquote onseeked="go()">Quotation</blockquote>
onseekingThe script to be run when the seeking attribute is set to true indicating that seeking is currently active.

 <!-- Executes go() function -->
<blockquote onseeking="go()">Quotation</blockquote>
onstalledThe script to be run when the browser is unable to continue fetching media data.

 <!-- Executes go() function -->
<blockquote onstalled="go()">Quotation</blockquote>
onsuspendThe script to be run when media data has stopped before being completely loaded.

 <!-- Executes go() function -->
<blockquote onsuspend="go()">Quotation</blockquote>
ontimeupdateThe script to be run when the media resources current playback position has changed.

 <!-- Executes go() function -->
<blockquote ontimeupdate="go()">Quotation</blockquote>
onvolumechangeThe script to be run when the volume has changed or been muted.

 <!-- Executes go() function -->
<blockquote onvolumechange="go()">Quotation</blockquote>
onwaitingThe script to be run when the media resource has paused but is expected to resume.

 <!-- Executes go() function -->
<blockquote onwaiting="go()">Quotation</blockquote>
Mouse
onclickThe script to be run when when a mouse is clicked on an element.

 <!-- Executes go() function -->
<blockquote onclick="go()">Quotation</blockquote>
ondblclickThe script to be run when a mouse is double clicked on an element.

 <!-- Executes go() function -->
<blockquote ondblclick="go()">Quotation</blockquote>
onmousedownThe script to be run when he mouse button is pressed down while the cursor is over an element.

 <!-- Executes go() function -->
<blockquote onmousedown="go()">Quotation</blockquote>
onmousemoveThe script to be run when the mouse button is moved.

 <!-- Executes go() function -->
<blockquote onmousemove="go()">Quotation</blockquote>
onmouseoutThe script to be run when the mouse cursor moves off an element.

 <!-- Executes go() function -->
<blockquote onmouseout="go()">Quotation</blockquote>
onmouseoverThe script to be run when the mouse cursor moves over an element.

 <!-- Executes go() function -->
<blockquote onmouseover="go()">Quotation</blockquote>
onmouseupThe script to be run when the mouse button is released while the cursor is over the element.

 <!-- Executes go() function -->
<blockquote onmouseup="go()">Quotation</blockquote>
onwheelThe script to be run when the mouse wheel rolls up or down over an element.

 <!-- Executes go() function -->
<blockquote onwheel="go()">Quotation</blockquote>
Scroll
onscrollThe script code to be run when the scrollbar of an element is being scrolled.

 <!-- Executes go() function -->
<blockquote onscroll="go()">Quotation</blockquote> 
Window - NONE

Relevant HTML Tutorials

HTML Basics - Text Tags