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.



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

<iframe src="" 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.


<iframe title="value">



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:

1.0 Sep 2008
1.0 Sep 2002
1.0 Aug 1995
1.0 Jan 2006
1.0 Jan 2003

You may also like

 Back to <iframe>

Last updated on Sep 30, 2023