WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using `small` element for form error messages

for

From: Jukka K. Korpela
Date: Apr 2, 2013 11:11PM


2013-04-03 6:44, Chris Pearce wrote:

> Just a question on semantics and not sure if this would make things more
> accessible?

By "this" you seem to mean the use of the <small> element for error
messages. All that <small> really means is reduced font size. And this
tends to reduce rather than improve accessibility, though it may still
be acceptable for presentational reasons.

> The link above says this:
>
> *Small print typically features disclaimers, caveats, legal restrictions,
> or copyrights. Small print is also sometimes used for attribution, or for
> satisfying licensing requirements.*

It's all just talk. HTML5 drafts contain some contrived verbal
acrobatics aimed at saving <small>, <b>, <i>, and <u> as "allowed" tags,
pretending that they do not have their old presentational meaning. Just
ignore that. Nobody is going to change the real meaning (the real
effects) of such markup.

There are billions of web pages that use those tags as presentational,
and there is no way to infer programmatically what they "mean" beyond
that, i.e. what was the reason why the author decided to use them. So
browsers and assistive software and search engine will keep treating
them as presentational, or "physical" markup.

In authoring, it's really simple: use <small>, if you want something to
appear in reduced font size even when style sheets are absent or
disabled. Just remember that in many situations (such as speech
rendering, Braille rendering, and character cell browsers), there is no
such thing as reduced font size, i.e. anything you tried to convey with
<small> will be lost.

Yucca