HTML form accept Attribute
HTML <form> tag
Definition and Usage
The accept attribute specifies the different content types the form
application will process correctly.
This attribute specifies a comma-separated list of content types that a
server processing this form will handle correctly.
Syntax
<form accept="content_type">
|
Syntax Example
<form accept="text/html">
|
Attribute Values
Value |
Description |
content_type |
A comma-separated list of content types accepted by the
form processing server. Possible values:
|
Browser Support
This attribute does not have any affect in any of the
major browsers.
Example
<form action="demo_form_accept.asp" accept="text/plain">
First name:
<input type="text" name="FirstName" value="Peter" />
<br />
Last name:
<input type="text" name="LastName" value="Griffin" />
<br />
<input type="submit" value="Submit" />
</form>
|
Try-It-Yourself Demos
form accept
attribute example
Use the accept attribute to specify which content types are accepted.
HTML <form> tag
…
|