Expand description
Attribute names for form (<form>) elements.
§Purpose
The <form> element represents a document section containing interactive
controls for submitting information to a server.
§Common Attributes
action: URL to submit the form data tomethod: HTTP method (GET or POST)enctype: Encoding type for form datanovalidate: Skip browser validationautocomplete: Controls autofill for all form fields
§Example
<form action="/submit" method="post" enctype="multipart/form-data">
<input type="file" name="upload">
<button type="submit">Upload</button>
</form>
<form action="/search" method="get" autocomplete="off">
<input type="text" name="q">
</form>§WHATWG Specification
Constants§
- ACCEPTCHARSET
- The
accept-charsetattribute. - ACTION
- The
actionattribute. - AUTOCOMPLETE
- The
autocompleteattribute. - ENCTYPE
- The
enctypeattribute. - METHOD
- The
methodattribute. - NAME
- The
nameattribute. - NOVALIDATE
- The
novalidateattribute. - TARGET
- The
targetattribute.