Coding for Beginners: Web Accessibility #19— Label Element Options for Accessibility

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerAccessibility3 min

About this video

A short Coding for Beginners lesson on ways to label form inputs for accessibility: hiding label text with CSS, using aria-label, using aria-labelledby, and wrapping inputs in an implicit label. It is aimed at designers learning basic HTML and CSS.

What you’ll learn

  • Hide a form label visually with CSS while keeping it available to screen readers
  • Label a form input with aria-label, aria-labelledby or an implicit label element
  • Explain why the title attribute is a weak substitute for a label element