Comment by miki123211
6 hours ago
Whether this should be a button or link from an A11Y perspective is... kind of up in the air.
There's an argument that links are "portals" that take you somewhere, while buttons cause some action to happen, Whether you treat a file as a resource (which your browser just chooses to save on disk instead of rendering on screen), or whether you treat it as an explicit "download" action, is a matter of semantics I guess.
<a href='...' download>...</a>