form

The form element represents a user-submittable form.

Attributes

<form attribute-name="attribute-value"></form>
Name Value Description
accept-charset character-encoding name list Specifies the character encodings used for form submission
action URI Submission action for the form
autocomplete on | off Specifies whether the element represents an input control for which a UA is meant to store the value entered by the user (so that the UA can prefill the form later) - HTML5
enctype application/x-www-form-urlencoded | multipart/form-data | text/plain MIME type with which a UA is meant to associate the form contents for form submission
method get | post | put | delete HTTP method with which a UA is meant to associate this element for form submission
name string Name part of the name/value pair associated with this element for the purposes of form submission
novalidate novalidate | empty Specifies that the element represents a form that is not meant to be validated during form submission - HTML5
target browsing-context name or keyword Browsing context or keyword that represents the target of the form

Global

CSS

form {
  display: block;
  margin-top: 0em;
}

Example | accept-charset

Example | action

Example | autocomplete

Example | enctype

Example | method

Example | name

Example | novalidate

Example | target

Example | CSS

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1