background preloader

Cours/Lesson

Facebook Twitter

HTML5 download Attribute. I tend to get caught up on the JavaScript side of the HTML5 revolution, and can you blame me? HTML5 gaves us awesome "big" stuff like WebSockets, Web Workers, History, Storage and little helpers like the Element classList collection. There are, however, smaller features in HTML5 that we can appreciate; one of those would be the new download attribute. The download attribute allows you to set a separate file download name than the actual link endpoint itself. The HTML Place the download attribute on a link... <a href="/files/adlafjlxjewfasd89asd8f.pdf" download="expenses.pdf">Download Your Expense Report</a> ...and when the user clicks the link, the download attribute appears in the save dialog instead of the garbled mess that was there before. This attribute is extremely useful in cases where generated files are in use -- the file name on the server side needs to be incredibly unique, but the download attribute allows the file name to be meaningful to user.

Be Heard Older CSS Vendor Prefixes. HTML5 Please - Use the new and shiny responsibly. HTML5 Semantics and Good Coding Practices — Aniket Pant. Mobile HTML5 - compatibility tables for iPhone, Android, BlackBerry, Symbian, iPad and other mobile devices. Table of Contents.