Sunday, 26.02.2017, 10:40
Welcome Guest
All Html Tags

Articles for Webmaster
:: Proffesional Website Builders
:: Div Tag in Html Examples
:: Notepad As a Free Html Editor
:: What makes eCommerce websites lucrative

form Tag in Html

Defines a form allowing user-inputted data to be sent somewhere. It is used with elements such as input, select and textarea.

form Tag Attributes

action - is used to specify where the form is sent to. It must take the form of a URI.
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.

Browser Support


Example of using form tag

<form action="/somedirectory/somformprocessingscript.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>

HtmlCodeExamples.Com © 2017