The <text> Tag

Purpose

The <text> tag renders a text input field (i.e., it is mapped to an HTML <input> element with type="text").

Requirements

A <text> tag has to be embedded in a <form> tag.

Attributes

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

NameDescription
assertClass Appended to the HTML class attribute, if an assertion concerning this input field failed. (Default: equally named attribute value of the embedding form.)
assertStyle Appended to the HTML style attribute, if an assertion concerning this input field failed. (Default: equally named attribute value of the embedding form.)
errorClass Appended to the HTML class attribute, if the validation of this input field failed. (Default: equally named attribute value of the embedding form.)
errorStyle Appended to the HTML style attribute, if the validation of this input field failed. (Default: equally named attribute value of the embedding form.)
index Required for array inputs - The array index for this input field.
maxlength Mapped to the HTML attribute of the same name.
name Required - Mapped to the HTML attribute of the same name.
onselect Mapped to the HTML attribute of the same name.
size Mapped to the HTML attribute of the same name.
value Mapped to the HTML attribute of the same name, if no current value is available.

Body

The <text> tag has no body.

Related tags

<password>, <hidden>, <textarea>