form
Description
Syntax
HTML
<form attribute-name="attribute-value"></form>
Attributes
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) |
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 |
target | browsing-context name or keyword | browsing context or keyword that represents the target of the form |
CSS
form { display: block; margin-top: 0em; }
Examples
1 · accept-charset
2 · action
3 · autocomplete
4 · enctype
5 · method
6 · name
7 · novalidate
8 · target
9 · CSS
Links
Elements
- !doctype
- a
- abbr
- address
- area
- article
- aside
- audio
- b
- base
- bdi
- bdo
- blockquote
- body
- br
- button
- canvas
- caption
- cite
- code
- col
- colgroup
- data
- datalist
- dd
- del
- details
- dfn
- dialog
- div
- dl
- dt
- em
- embed
- fieldset
- figcaption
- figure
- footer
- h1
- h2
- h3
- h4
- h5
- h6
- head
- header
- hgroup
- hr
- html
- i
- iframe
- img
- input
- ins
- kbd
- label
- legend
- li
- link
- main
- map
- mark
- menu
- meta
- meter
- nav
- noscript
- object
- ol
- optgroup
- option
- output
- p
- param
- picture
- pre
- progress
- q
- rb
- rp
- rt
- rtc
- ruby
- s
- samp
- script
- search
- section
- select
- slot
- small
- source
- span
- strong
- style
- sub
- summary
- sup
- table
- tbody
- td
- template
- textarea
- tfoot
- th
- thead
- time
- title
- tr
- track
- u
- ul
- var
- video
- wbr