This Wiki page is edited by participants of the HTML Accessibility Task Force. It does not necessarily represent consensus and it may have incorrect information or information that is not supported by other Task Force participants, WAI, or W3C. It may also have some very useful information.
From HTML accessibility task force Wiki
- Section: 4.11.2 The
- Revision version of draft reviewed: 1.3518
label attribute gives the name of the command, as shown to the user.</q>
title attribute gives a hint describing the command, which might be shown to the user to help him.</q>
Comments: This differentiation between
title is a familiar one: the
label is a noun, which describes the labeled item, while
title serves as a "verb", by providing assistance or instructions to the user on demand.
icon attribute gives a picture that represents the command. If the attribute is specified, the attribute's value must contain a valid URL. To obtain the absolute URL of the icon, the attribute's value must be resolved relative to the element.</q>
Comments: There is currently no stipulation that use of an
icon necessitates valid
title values, so as to provide for an alternative to the rendering of the graphic. Since the
icon attribute is explicitly <q cite="http://dev.w3.org/html5/spec/interactive-elements.html#command-facet-accesskey">a picture that represents the command</q>, use of
icon must be valid only when
title are also present.
Synopsis: Use of
icon requires valid
title, or is that an best practice for authors - sometimes, the
label does "say it all"). There are NO circumstances where the
icon attribute can be used without an accompanying
label. Note that the presence of a
label helps users who can perceive the icon, but to whom the imagery does not make sense or is not readily apparent to the user; therefore,
label becomes an especially important means of disambiguating the meaning of the icon.