Jon Snow
13 April 2023
The accept attribute is used to specify the type of files the user can upload. In following example, user can upload or use only .jpg or .raw files.
<input type="file" accept=" .jpg, .raw">
The spellcheck is used to check spelling and grammer on html elements such as input.
<p spellcheck="true">
Hello World!
</p>
The translate attribute is used to tell the browser whether the content is to be translated or not. This can be translated into any language.
<p translate="no">
Hello World!
</p>
The poster attribute specifies an image to be shown while the video is downloading
<video src="" poster="any.png"></video>
The download attribute is to instruct the browser to download a URL instead of navigating or the download attribute specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink.
<a href="" download></a>