HTML accept attribute
HTML accept attribute gives hint to the browser that which type of file will be accepted by the browser.
Attribute values
All possible values of accept attributeaccept='.extension':
-
The value which starts with a dot(.) hints the browser that a file of specific extension is to upload.
-
If files of different extensions are allowed, then extensions should be separated by a comma.
The same type of extensions (dublicate extensions) should not be used.