Skip to content
Discussion options

You must be logged in to vote

Hi @yashaswi1004 👋

Great question! The title and aria-label attributes can both be used to provide extra information to users, but they serve different purposes and behave differently across user agents and assistive technologies (AT).

  • title: Tooltip text for sighted users, which is visible as a tooltip on hover. It's also inconsistently picked up by screen readers
  • aria-label: Label for screen readers that is invisible to sighted users. AT reads it automatically.

The A11Y collective has a good blog that includes best practices for aria-label that you can check out here: https://www.a11y-collective.com/blog/aria-labels/

Let me know if you have anymore questions! 😄

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@yashaswi1004
Comment options

@franciscolourenco
Comment options

@pransh15
Comment options

@franciscolourenco
Comment options

@Islandstone89
Comment options

Answer selected by pransh15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants