Jump to Content

Welcome to the beta of the new saila.com. Send in your bugs.

Is an alt attribute needed if there is no description for the image?

An alt attribute is required, even if the image requires no description (for example, it could be a purely decorative element). In such a case, use the alt attribute, but leave it empty, like this: alt="".

Category: Web Design

Topics: HTML, Accessibility


Jump to navigation