HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

accept

Description

The accept attribute for HTML specifies the hint for expected file type in file upload controls.

Syntax

accept="value"

Values

audio/*

Indicates that sound files are accepted.

video/*

Indicates that video files are accepted.

image/*

Indicates that image files are accepted.

MIME with no parameters

Indicates that files of the specified type are accepted.

U+002E FULL STOP (.) first character

Indicates that files with the specified file extension are accepted.

Examples

1 · HTML · audio/*

2 · HTML · video/*

3 · HTML · image/*

4 · HTML · MIME

5 · HTML · FULL STOP

6 · JS · audio/*

7 · JS · video/*

8 · JS · image/*

9 · JS · MIME

10 · JS · FULL STOP