<html>
<body>
<form action="https://www.w3schools.com/action_page.php" accept="image/gif, image/jpeg">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
Your image: <input type="file" name="pic" id="pic"><br>
<input type="submit" value="Submit">
</form>
<p><b>Note:</b> The accept attribute is not supported in any of the major browsers.</p>
</body>
<!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml_form_accept by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:16:58 GMT -->
</html>