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
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|