Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <blockquote> title Attribute

The title attribute on a <blockquote> tag adds a tooltip with title text to the blockquote.

Hovering the mouse over the blockquote will display the tooltip.

Example

#

A title attribute on a <blockquote>.
Hover over the quote to see the tooltip.

And so, my fellow Americans: ask not what your country can do for you – ask what you can do for your country. My fellow citizens of the world: ask not what America will do for you, but what together we can do for the freedom of man.
-- President Kennedy, 1961, Inaugural address
<acticle>
  <blockquote title="Inaugural speach by John F. Kennedy">
     And so, my fellow Americans: ask not what your country 
     can do for you – ask what you can do for your country. 
     My fellow citizens of the world: ask not what America 
     will do for you, but what together we can do for the 
     freedom of man.
  </blockquote> 

  -- President Kennedy, 1961, Inaugural address
</article>

Code explanation

  • The title attribute is placed in the <blockquote> opening tag.
  • The value can be any string.
  • Hover the cursor over the blockquote and a tooltip appears.

Using title

The title attributes provides additional information about the <blockquote> element.

The title attribute value can be seen as tooltip.

Tooltips are shown when the blockquote element is hovered.


Syntax

<blockquote title="value">

Values

#

Value Description
value A string value. A title can span multiple lines by including newline or carriage-return characters:  &#10;  or  &#013;.

Browser support

Here is when title support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <blockquote>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides