HTML
Example
Specifying that in a file upload, the server only accepts gif and jpeg files:
First name:
Last name:
Your image:
Try it »
Browser support





**Note:** Almost no major browser supports the accept attribute.
Definition and Usage
In HTML5, the
HTML Tag