Should “Download” components be buttons or links?

Question

My website has a component used for downloading files. Should I code it as a button or a link?

Answer

"Download" components should be coded as links and not buttons (assuming the download component does not perform any other actions). For example, if a "download" component functions as a way to save, update, and download form content, a button would be more appropriate. However, if the component solely functions as a way to download or open a static file, then a link should be used.

Would your team benefit from having an accessibility specialist available for regular consultation on questions like this? Explore accessibility consulting services from Accessible Web.

Free Tools to Continue Learning

Accessible Web Company Logo

Accessible Web RAMP

Monitor your website and manage your progress towards WCAG conformance.

Accessible Web Company Logo

Accessible Web Academy

Career specific courses to help power up your accessibility knowledge.