blockquote tag (XHTML 1.1)

long quotation

Topics

The blockquote tag is, just like the q tag, used for displaying quotes. The difference is that the blockquote tag is for long quotes which spans more than one line, while the q tag is for short, one-line quotes. The tag can be used like this:

<blockquote>This is a very, very, very long quote!</blockquote>

The result looks like this in your browser:

This is a very, very, very long quote!

While it might not look terribly interestingly in your browser, another browser might choose to render it in another way, which is the main reason for tagging your text properly.

The cite attribute

The cite attribute can be used for specifying a source URL for the quote. For instance, here is a quote from Google, where we use the cite attribute to specify the page where we found it:

<blockquote cite="http://www.google.com/corporate/">Google's mission is to organize the world's information and make it universally accessible and useful.</blockquote>

Once again, it's up to the browser how to render this extra information, and most browsers chooses not to render it at all. That doesn't mean it's not useful though - the value might be picked up by search bots etc.

Attributes

Attribute Deprecated Required Description
cite  URI for source document or msg 
class  space-separated list of classes 
dir  direction for weak/neutral text 
id  document-wide unique id 
lang  language code 
style  associated style info 
title  advisory title 

Events

Event Description
onclicka pointer button was clicked 
ondblclicka pointer button was double clicked 
onkeydowna key was pressed down 
onkeypressa key was pressed and released 
onkeyupa key was released 
onmousedowna pointer button was pressed down 
onmousemovea pointer was moved within 
onmouseouta pointer was moved away 
onmouseovera pointer was moved onto 
onmouseupa pointer button was released 



© htmlpedia.net 2008 - 2012