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 <iframe> title Attribute

The title attribute on an <iframe> tag adds title text to the iframe.

Hovering the mouse over the iframe will not display a tooltip, but screenreaders can use the title text.

Example

#

A title attribute on an <iframe> element.
Note: no tooltip appears when hovering over the iframe.

<iframe src="https://en.wikipedia.org" style="width:100%;height:450px;" 
        title="Wikipedia English language homepage"></iframe>

Code explanation

The title attribute is placed in the <iframe> opening tag.

The value can be any string.

No tooltip will appear, but the information is helpful for screenreaders to assist visually impaired users.


Using title

The title attributes attaches additional information to the <iframe> element.

The title attribute value can be read by screenreaders.

No tooltip appears when the iframe element is hovered.


Syntax

<iframe 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 <iframe>

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