The <form> Tag

Purpose

The <form> tag defines an HTML form (i.e., it is mapped to an HTML <form> element).

The action attribute is used to address the action to be invoked by the form.

Attributes

Attribute groups: %coreattrs, %i18n and %events.

NameDescription
accept Mapped to the HTML attribute of the same name.
action Required - Module-relative path to the action in the current module, that should be invoked when submitting the form. The tag will transform this into a context-relative path, when it renders the HTML form tag's action attribute.
enctype Mapped to the HTML attribute of the same name.
method Mapped to the HTML attribute of the same name.
name Mapped to the HTML attribute of the same name.
onreset Mapped to the HTML attribute of the same name.
onsubmit Mapped to the HTML attribute of the same name.
target Mapped to the HTML attribute of the same name.

Body

The <form> tag requires a body containing the contents of the form (i.e., its input fields, buttons, etc.).