Code Responsible

Skip navigation

Download Attribute


The download attribute is a great feature in HTML5. It prevents the browser from opening a new window just to download a file. By using the download attribute you can force a file to download without having to use a server side script.

<a href="/downloads/myfile.pdf" download="myfile.pdf">Download PDF</a>

41 Posts

Ryan Burgess

Ryan Burgess is a Manager, UI Engineering at Netflix in San Francisco, California. Previously at Evernote. Listen to Ryan on the Front End Happy Hour podcast. He's also the creator of, an online-based arts and culture magazine that focuses on graffiti and tattoo art.

Leave a Reply

Comment Form