Horje

How to add HTML <input> accept media_type Attribute

media_type A valid media type, with no parameters. Look at IANA Media Types for a complete list of standard media types
index.html
Example: HTML
<form action="/action_page.php">
  <label for="img">Select image:</label>
  <input type="file" id="img" name="img" accept="media_type">
  <input type="submit">
</form>

Output should be:

How to add HTML <input> accept media_type Attribute




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