accept Attribute


 

Where to use the accept Attribute


Description

The accept attribute specifies a comma-separated list of one or more content types (e.g. "image/jpeg", "audio/mpeg") which will be accepted for file upload and handled correctly by the form's processing script.

Some user agents will filter out all but those accepted file types when prompting the user to select files to upload using the input type="file" form control.

The IANA provide a *list of registered MIME Media Types for reference.

The accept attribute is not present in the *W3C XHTML 1.1 Basic Forms Module.

See also the accept-charset attribute.


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 16 May 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Attribute Index (XHTML 1.1) > accept Attribute (XHTML 1.1)