Re: title attributes on links

Hi again,

Jonathan said:

"An alt attribute is the appropriate method for providing an alternative
for an input element of type image.  Because it would need to be displayed
when the image is not present."


And Harry said:

"Beware: title is not a replacement for alt in <input type="image" />

Without alt you will get the generic browser "Submit Query" being 
displayed (in Firefox)."


Of course, I agree with you! I'm simply trying to highlight the 
inconsistencies that could arise when allowing the title to be 
"sufficient" to label form controls. Now I know that this is also a 
matter of accessibility support and implementations, but consider the 
wording in the HTML5 spec that Steve linked:


"on interactive content, it [the title attribute] could be a label for, 
or instructions for, use of the element".

And "interactive content" explicitly includes (among others): a, button, 
input (if the type attribute is not in the Hidden state)

So an <input type="image" /> is interactive content and therefore can be 
labelled by a title, isn't it?

I know, it doesn't say that the title attribute replaces alt or the link 
text, but saying that it can "label" an interactive content and 
combining it with H65 (where a real <label> or @value is not required), 
I think that some people could interpret it as:

"the title attribute is enough to provide information for a button or 
<input type="image" />, and even for a link under certain circumstances."


But maybe it's just me that don't like H65 (smile)

Regards,
Ramón.

Received on Wednesday, 30 May 2012 08:27:08 UTC