DEV Community

Discussion on: CSS can help improve your HTML⁉ - Ep 2: buttons and links.

Collapse
 
oskargrosser profile image
Oskar Grosser • Edited

I did not know that href may be left out to let anchor elements behave as placeholders, thank you! I should definitely read the specs more instead of relying on tools' complaints (i.e. Lighthouse lead me to believe that missing the href attribute is invalid or inaccessible HTML).

Collapse
 
ashleyjsheridan profile image
Ashley Sheridan

Lighthouse is not really that good for accessibility testing, it misses a lot and throws up a fair few false positives. The a11y tool in Firefox is better, but better than both of those is the aXe tool, which is available as a plugin for all the major browsers.