HTML Value Syntax
HTML comma separated tokens syntax
Commas delimit entries; surrounding ASCII whitespace can be stripped. Each attribute determines which tokens are legal. For example, accept lists file-type hints, not a server-side security check. This is a value grammar, not a standalone HTML element.
Formal Syntax & Structure
html syntaxhtml
accept="image/png, image/jpeg"Working Example
Example Snippethtml
<label> Image <input type="file" accept="image/png, image/jpeg"></label>