I keep forgetting, but the alt
attribute of the <img>
element is not just useful for users who are visually impaired. It is also useful when the image is not displayed in the browser for whatever reason. For example: the src
attribute does not contain a valid path to an image.
Tagged: accessibility
-
-
While you’re fixing the fun stuff, fix the important stuff too - Piccalilli
Initially, I thought this was just an article on how to fix the janky hover state of a card component. But it also goes over the HTML markup for a typical card component in the context of semantics and accessibility.