Categories
design forms html5 label

Placeholder Attribute Is Not A Label!

Just so we’re all clear on this, the HTML5 placeholder attribute in a text input is not a replacement for the label element. Period. The placeholder should only be used as a brief example of the text to be entered.

Besides inconsistent support for screen readers, using a placeholder as an input label can create usability problems and issues for those with cognitive impairments. For example, how does one review the information entered if the placeholder is now gone?

The placeholder should be used like a title attribute (tooltip); it provides only supplementary information. If the information is required for the user (such as a strict text format) then this should be conveyed in the main content of the page, not in an attribute.

The W3C HTML5 placeholder specification specifically states it should be a “short hint…intended to aid the user with data entry” and also states:

The placeholder attribute should not be used as a replacement for a label.

Supporting articles:

Bonus!
On @a11yMemes, check out this humorous take on placeholder.

Addendum (more references):

Also see Web Axe follow-up post: Floated Labels Still Suck.

Related Tweet Jan 2016:

https://twitter.com/shoobe01/status/689221623774220288

Categories
usability

The Usability Principles, Accessibility Style

Steve Grobschmidt (@AquinasWI) recently blogged a three-part series titled The Usability Principles, Accessibility Style. Using Jakob Nielsen’s 10 Usability Heuristics as a guideline, Steve discusses the principles and then explains how they each relate to accessibility. Great stuff!

The 10 principles discussed are:

  1. Visibility of system status
  2. Match between system and the real world
  3. User control and freedom
  4. Consistency and standards
  5. Error prevention
  6. Recognition rather than recall
  7. Flexibility and efficiency of use
  8. Aesthetic and minimalist design
  9. Help users recognize, diagnose, and recover from errors
  10. Help and documentation

Addendum:
For more related information, see my article Popular Mistakes in Universal Web Design which discusses the seven universal design principles.

Categories
gaad

Reflecting on GAAD

[A guest post by Jennison Asuncion (@Jennison), co-founder of GAAD]

On May 9, people from around the world took part in public events, hands-on experiences, and other activities to mark the first Global Accessibility Awareness Day (GAAD). Conceived by Joe Devon, the idea started because Joe, as a developer, and not someone who knew much about accessibility to begin with himself, blogged passionately last November that all devs need to possess basic awareness of and do their part in making the web accessible. He further declared that there needs to be a day to bring focus, and suggested May 9 as a good a day as any.

As someone who is constantly thinking about and actively pursuing ways to make digital accessibility, “accessible”, to the mainstream IT and related communities myself, you cannot imagine my excitement when I stumbled upon, purely by accident via Twitter, Joe’s blog post, on that random Saturday night when it went live. After reading it, I was immediately in touch with Joe, raising my hand to be his co-pilot for the effort. The rest is now history, and a pretty good testimonial of the power of social media in its own right.

What inspired me most, outside of Joe’s genuine interest and enthusiasm, was how willing people were, in stepping forward to either run an event and/or promote GAAD, without much time at all to spare. Thank you everyone. The truth is that Joe and I share a common trait, equally hectic schedules between our day jobs and our other involvements, which meant GAAD crept up on both of us. Thankfully, leaning on our generous networks, social media, and word of mouth, everyone who took part, in what ever way, has much to be proud of. Now that the date is set, and the event is out there, GAAD 2013 and beyond can only keep growing. Check out Joe’s post-event recap to see where he plans bringing his energies next.

Involvement with GAAD has only reinforced my belief that we, working in digital accessibility, only benefit when we engage with and support members of the mainstream design, development, and related communities in raising the profile of and addressing digital accessibility.

Get involved- express interest in holding an event for GAAD 2013. Volunteer to translate some of our text into other languages.

Editor’s Note

There were many blogs and press articles written about GAAD. Here are some:

Categories
event gaad podcast survey

Podcast #95: Global Accessibility Awareness Day, Surveys, more

First, Dennis and Ross discuss a variety of topics including some current surveys and a couple articles about skip-to links. Then Dennis speaks with @JoeDevon and @Jennison about the inaugural Global Accessibility Awareness Day!

Download Web Axe Episode 95 (Global Accessibility Awareness Day, Surveys, more)

[Transcript of podcast 95]

Goings On

  • Ross’ book update.
  • Positive email response to Disability.gov critique.
  • Liz Ellcessor Ph.D. candidate in Media & Cultural Studies at U of Wisc interviews Dennis (Malware warning due to hosting issue).
  • New! a11yBuzz by @KarlGroves, an “accessibility body of knowledge”.
  • 2 updates (validation, open in other browsers) to Web Accessibility Toolbar 2012 by The Paciello Group.
  • Seeing more accessibility jobs in general lately. Hiring good web developers at PayPal in San Jose, San Francisco, Austin; contact @DennisL.

Surveys

Articles

Upcoming Events

Global Accessibility Awareness Day

Categories
gov review

Suggestions for the new Disability.gov

Last month (March 2012), Disability.gov (@DisabilityGov) relaunched its website; there is an announcement in its newsletter. I discovered this actually by coming across an article posted on Twitter, A Look behind the Scenes – Part I: Making Disability.gov Accessible which discusses considerations made when developing an accessible website.

Naturally, this peaked my curiosity and was compelled to investigate. I found mixed results. Every website, no matter how great the foundation, is a work in progress and could use improvements. Disability.gov is no exception. Here’s my review of the home page.

  • Heading usage needs improvement. Currently no H1 and only two H2 elements, nothing else. Besides the H1, suggest at least adding headings for the featured/slide content and the Connect section at bottom.
  • In very top section, the elements are keyboard accessible which is great, but the visual placement of print button is out of tab order which makes it a little confusing. (On other pages, three added text links in this area compound the problem.)
  • The “Skip to Page Content” link is good, but needs a JavaScript enhancement for browsers that don’t support the functionality. The fix is explained at end of article Back to Basics: Skip to Main Content Links by @TerrillThompson (which I implemented on Easy Chirp). (Skip-to link is the first of three main features listed on the site’s accessibility statement.)
  • I like the implementation of the search form (besides the 1 extra span in the markup). It uses a visually hidden label and an HTML5 placeholder attribute.
  • High contrast controls are good as the input label and submit button are included. But there are a few issues; the first two mesh with usability. (High contrast is the second of three main features listed on the site’s accessibility statement.)
    • It seems that “Full Graphics” is a poor choice of words for the default state. After all, both states have the graphics.
    • There are only two options, so why have a select dropdown? Unless more options are planned, I suggest using two simple radio options or a single checkbox option.
    • While in high contrast mode, text links in the featured/slide content are unreadable (yellow on white).
  • About the feedback modal/overlay window:
    • After opening, the focus is managed and the feature is keyboard accessible, which is super. But the “Save” button is misleading and confusing. It should simply be “Submit”; the user is not saving the selection for later, but actually submitting his or her response.
    • After closing the feedback modal/overlay window, the keyboard focus is lost. When closing, suggest placing focus on control that opened it (the button “Tell us what you think”).
  • In the non-JavaScript use case:
    • The feedback is missing a submit button (and the button “Tell us what you think” should not be present).
    • The featured/slide content doesn’t degrade well. Most of the slide sections are still visually hidden with no controls to view.
  • There is a visual hover/focus indicator for text links, which is great, but should be more prominent (more obvious, too subtle); it’s currently dark blue text which changes to purple text.
  • The links under Information by Topic have a lot of content in the title attribute. If the content is that long, and especially if it’s important to the user (not “supplementary”), then title attributes are not the best solution.
  • Under News and Events, a title attribute is fine for links in new window, but also need visual indication (icon) and/or include “new window” in anchor (and possibly hide off screen).
  • It’s good practice to declare a language in the HTML element with the lang attribute, in this case, lang=”en-us”.
  • The text-resize widget works, but I see two issues (this is the third of three main features listed on the site’s accessibility statement):
    • The text-resize widget doesn’t resize text specifically; it makes the whole design larger, which is basically the same as browsers’ page zoom feature. So why have the widget? Recommend replacing with real text-size functionality since browsers bury this feature or don’t provide it at all anymore.
    • The hover/focus state of the options in the text-resize widget is so subtle (purple instead of black) that it’s very difficult to notice the change.
  • The options in the “Add This” flyout provides visual feedback with the mouse hover, but is missing keyboard focus.

After completing this review, I unfortunately wouldn’t agree with the claim in the footer that the Disability.gov website adheres to WCAG 2 level AA.

The site’s accessibility statement states:

If you experience any technical problems or have issues with accessibility, please contact dgovdeveloper AT devis DOT com with your feedback, and we’ll do our best to respond to your concerns.

I have emailed a link to a link to this blog and hope more improvements can be made soon. -Dennis