Represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing.

Technical details about this element can be found on the Official W3C reference

no subtypes hierarchy

Initializer
Form(String action, String? method = null, String? acceptCharset = null, Boolean? autoComplete = null, String? encType = null, String? name = null, Boolean? noValidate = null, String? target = null, String? id = null, CssClass classNames = [], String? style = null, String? accessKey = null, String? contextMenu = null, TextDirection? dir = null, Boolean? draggable = null, DropZone? dropZone = null, Boolean? inert = null, Boolean? hidden = null, String? lang = null, Boolean? spellcheck = null, Integer? tabIndex = null, String? title = null, Boolean? translate = null, Aria? aria = null, NonstandardAttributes nonstandardAttributes = ..., DataContainer data = ..., {String|BlockOrInline|{String|BlockOrInline*}|Snippet<BlockOrInline>|Null*} children = ...)
Parameters:
  • action

    Specifies where to send the form-data when a form is submitted.

  • method = null

    Specifies the HTTP method to use when sending form-data

  • acceptCharset = null

    Specifies the character encodings that are to be used for the form submission.

  • autoComplete = null

    Specifies whether a form should have autocomplete on or off.

  • encType = null

    Specifies how the form-data should be encoded when submitting it to the server (only when method is post)

  • name = null

    Specifies the name of a form.

  • noValidate = null

    Specifies that the form should not be validated when submitted.

  • target = null

    Specifies where to display the response that is received after submitting the form.

  • id = null
  • classNames = []
  • style = null
  • accessKey = null
  • contextMenu = null
  • dir = null
  • draggable = null
  • dropZone = null
  • inert = null
  • hidden = null
  • lang = null
  • spellcheck = null
  • tabIndex = null
  • title = null
  • translate = null
  • aria = null
  • nonstandardAttributes = empty
  • data = empty
  • children = {}
Attributes
acceptCharsetSource Codeshared String? acceptCharset

Specifies the character encodings that are to be used for the form submission.

actionSource Codeshared String action

Specifies where to send the form-data when a form is submitted.

attributesSource Codeshared actual <String->Object>[] attributes
Refines BaseElement.attributes ultimately refines Node.attributes
autoCompleteSource Codeshared Boolean? autoComplete

Specifies whether a form should have autocomplete on or off.

childrenSource Codeshared actual {String|BlockOrInline|{String|BlockOrInline*}|Snippet<BlockOrInline>|Null*} children
encTypeSource Codeshared String? encType

Specifies how the form-data should be encoded when submitting it to the server (only when method is post)

methodSource Codeshared String? method

Specifies the HTTP method to use when sending form-data

nameSource Codeshared String? name

Specifies the name of a form.

noValidateSource Codeshared Boolean? noValidate

Specifies that the form should not be validated when submitted.

tagSource Codeshared actual Tag tag

The tag name and type.

Refines Node.tag
targetSource Codeshared String? target

Specifies where to display the response that is received after submitting the form.

Inherited Attributes
Attributes inherited from: BaseElement
Attributes inherited from: Element
Attributes inherited from: Object
Attributes inherited from: StyledElement
Attributes inherited from: Node
Attributes inherited from: ParentNode<Child>
Inherited Methods
Methods inherited from: Object