form
Defines a form allowing user-inputted data to be sent somewhere. It is used with elements such as input, select and textarea.
Attributes
- action is used to specify where the form is sent to. It must take the form of a URI.
Optional Attributes
- method can be used to specify how the form is sent. The value must be get (default), which bolts the form values onto the URI or post which invisibly sends the form data in the body of the HTTP request.
- enctype can be used to specify the MIME type used to encode the form data. The default value is application/x-www-form-urlencoded, but this should be multipart/form-data when the form contains a file input element.
- accept can be used to specify which file-types (selected from a file input element) should be accepted. This is a comma-separated list of MIME types.
- accept-charset can be used to specify which character sets should be accepted. This is a comma-separated list.
Example
<form action="/somedirectory/somforgscript.php" method="post">
<div>House number: <input type="text" name="housenumber" /></div>
<div>Street: <input type="text" name="street" /></div>
<div><input type="submit" /></div>
</form>
Other Topics
HTML
: EM ,HTML
: DT ,HTML : FIELDSET ,HTML
: HTML ,HTML
: FORM ,HTML
: IMG ,HTML
: INS ,HTML : INPUT ,HTML
: KBD ,HTML : LEGEND ,HTML : BR,CSS : Class selector,CSS : Sticky Footer Layout,CSS::STYLING FORMS, mechanical Engineering, English books,Photoshop tutorials,Harry potter,Best 100 english books,Mechanical-old-question-paper,CSS : Id Selector
No comments:
Post a Comment