WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: IFRAME attribute question

for

From: Jukka K. Korpela
Date: Oct 16, 2014 2:31PM


2014-10-16 23:17, Weissenberger, Todd M wrote:

> What's the word on using the same value for NAME and TITLE in an IFRAME element? Do the values need to be different?

There is no need for them to be different, and no need for them to be
the same. They have entirely different purposes and effects. The TITLE
attribute specifies an advisory title, which may be presented to the
user on request (e.g. on mouseover). The NAME attribute assigns a name
to the element, meant to be used in client-side scripting for accessing
a specific IFRAME element (not needed, since the ID attribute is more
adequate for that purpose) and for naming the "browsing context". In
practice, the NAME attribute mostly matters only in the role of naming
the inline frame so that TARGET attributes in links can use that name.

Thus, the TITLE attribute, if used, should contain some useful text for
the user, whereas the NAME attribute is an identifier and can be just
about anything as long as it is used consistently - it only matters to
people reading and editing the HTML code.

Yucca