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.
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>
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.
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.
<iframe title="value">
Value | Description |
---|---|
value | A string value. A title can span multiple lines by including newline or carriage-return characters: or 
. |
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 |
Back to <iframe>