More 'Try it Yourself' examples below.Definition and UsageThe download attribute specifies that the target will be downloaded when a user clicks on the hyperlink.This attribute is only used if the href attribute is set.The value of the attribute will be the name of the downloaded file. There areno restrictions on allowed values, and the browser will automatically detect thecorrect file extension and add it to the file (.img,.pdf,.txt,.html, etc.).If the value is omitted, the original filename is used.Browser SupportThe numbers in the table specify the first browser version that fully supports the attribute. Attributedownload14.013.020.010.115.0Differences Between HTML 4.01 and HTML5The download attribute is new for the tag in HTML5.Syntax.