HTML CSS Reference/HTML Attributes Reference/accept
"accept" Example
<HTML>
<Title>Example For accept</Title>
<BODY>
<input type="text"
size=50
accept="image/gif,text/html"
value="The content type this field accepts is "image/gif,text/html"">
</BODY>
</HTML>
accept is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<input> |
+----------------+--------------------------------------------------------------+
"accept" Syntax and Note
Note:
This attribute provides a comma-separated list of the MIME content types.
Syntax:
<input accept="value">