1. Home
  2. Docs
  3. SiteLint
  4. Accessibility Rules
  5. missing-href-on-a

missing-href-on-a

Print this article

    Description

    This rule determines if a given anchor <a> element has defined attribute href.

    Purpose

    Attribute href defines an URL that the hyperlink points to. When it’s not defined then the user cannot navigate to this element using the keyboard.

    How to fix it

    • Always define an attribute href for <a> element.

    Standard

    Accessibility, Best Practice

    Was this article helpful to you? Yes No