Easy Tutorial
❮ Dom Obj Script Met Canvas Getimagedata ❯

FileUpload accept Attribute


Definition and Usage

The accept attribute sets or returns a comma-separated list of content types.

Syntax

Set the accept attribute:

Return the accept attribute:


Browser Support

All major browsers support the accept attribute! However, only Firefox, Opera, and Chrome browsers will return the file types.


Example

Display the content types accepted by the <input type="file"> element:

❮ Dom Obj Script Met Canvas Getimagedata ❯