Latest

recent

HTML form accept Attribute

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="Harry" />
<br />
Last name: 
<input type="text" name="LastName"
 value="Potter" />
<br />
<input type="submit" value="Submit" />
</form>
HTML form accept Attribute Reviewed by 1000sourcecodes on 04:08 Rating: 5
Powered by Blogger.