Horje

How to add HTML <input> accept file_extension Attribute

file_extension Specify the file extension(s) (e.g: .gif, .jpg, .png, .doc) the user can pick from
index.html
Example: HTML
<form action="/action_page.php">
  <label for="img">Select image:</label>
  <input type="file" id="img" name="img" accept="file_extension">
  <input type="submit">
</form>

Output should be:

How to add HTML <input> accept file_extension Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin