Skip to main content
Experience faster, smarter testing with BrowserStack AI Agents. See what your workflow’s been missing. Explore now!
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

breadcrumb-label

Rule Severity : Serious

Description

You need to provide a clear, recognizable accessible name for the breadcrumb navigation. This name helps users of assistive technology identify the component’s role and purpose quickly. Without a proper label, screen reader users may struggle to understand that the component is a breadcrumb trail.

The breadcrumb-label rule aligns with WCAG Success Criterion 4.1.2 (Name, Role, Value) and WCAG Success Criterion 1.1.1 (Non-text Content). These criteria ensure that all user interface components have descriptive accessible names and that the document structure is programmatically determinable.

Examples

In the following incorrect example, the <nav> element is used for the breadcrumb but does not have an aria-label. The breadcrumb is not explicitly identified for assistive technologies.

Incorrect Sample
Copy icon Copy

In the following corrected example, the aria-label=”Breadcrumb” attribute provides a descriptive name, ensuring assistive technology users can clearly identify the component as a breadcrumb navigation.

Correct Sample
Copy icon Copy

How to fix?

To fix violations of the breadcrumb-label rule, follow these steps:

  • Locate the main container element for the breadcrumb navigation. This is typically the HTML <nav> element.

  • Apply an accessible name to this container using the aria-label attribute.

  • Set the aria-label value to clearly and concisely identify the component’s purpose, such as “breadcrumb”.

Reference

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle