DEV Community

[Comment from a deleted post]
Collapse
 
gsarig profile image
Giorgos Sarigiannidis • Edited

Great post. Here are two more issues that I see often:

  1. If you have to use Font Awesome or any other font icon, avoid the <i> element, which is meant to represent a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, taxonomical designations, among others. For that reason, it fails on the WCAG validation. Instead, use <span>, which is semantically neutral and therefore the most appropriate tag for the occasion.
  2. Avoid using <a> elements with empty hrefs as menu togglers and use <button> instead.