HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

form

Description

The form element for HTML represents a user-submittable form.

Syntax

HTML

<form attribute-name="attribute-value"></form>

Attributes

Global

NameValueDescription
accept-charsetcharacter-encoding name listSpecifies the character encodings used for form submission
actionURISubmission action for the form
autocompleteon | offSpecifies 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)
enctypeapplication/x-www-form-urlencoded | multipart/form-data | text/plainMIME type with which a UA is meant to associate the form contents for form submission
methodget | post | put | deleteHTTP method with which a UA is meant to associate this element for form submission
namestringName part of the name/value pair associated with this element for the purposes of form submission
novalidatenovalidate | emptySpecifies that the element represents a form that is not meant to be validated during form submission
targetbrowsing-context name or keywordbrowsing 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