WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: ARIA and Label tags both for Error Messages

for

From: Hewitt,Susan (DSHS)
Date: Feb 11, 2014 3:34PM


Do you mean you would include the error information within the label tag? (Obviously you wouldn't to drop them completely.)

I agree with Yucca that this doesn't seem very semantic although I think the case could be made that it's not forbidden. W3C spec says: "The LABEL element may be used to attach information to controls." I think that gives license to include error information within <label> (after all, it's commonly used to provide formatting info and required status after all.) I also don't think it's inappropriate to use aria-describedby in this situation. But I would not use both methods.