HTML5 Download Attribute

Exploring the behavior of the download attribute

Default

Markup

<a href="htmldoc.html">

Go to HTML Document

Download Attribute

Markup

<a href="htmldoc.html" download>

Download HTML Document

Download Attribute & Value

Markup

<a href="htmldoc.html" download="sample-file.html">

Download HTML Document