A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/attributes/accept below:

accept ยท WebPlatform Docs

accept Summary

This attribute supplies browsers with a hint about what filetypes its element will accept.

Applies to [HTMLInputElement](/dom/HTMLInputElement)

Accepts a comma separated list of file types. Valid file types can be any of the following.

Duplicates are not allowed (case insensitive).

Examples

Indicates that audio files are accepted.

<input type="file" accept="audio/*" />

Indicates that both PNG and GIF file formats are accepted.

<input type="file" accept="image/png, image/gif" />
Notes Remarks

The information from the list can be used to filter out nonconforming files when prompting a user to select files to be sent to the server using the <INPUT> element with type="file". Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "audio/basic", "text/tcl", "text/javascript", and "text/vbscript". For the current list of registered MIME types, see MIME Media Types. There is no functionality implemented for this property unless defined by the author. accept was introduced in Microsoft Internet Explorer 6

Related specifications
HTML5
W3C Candidate Recommendation
See also Related articles HTML External resources Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4