Tutorials | control | text box <input name= "name" title= "title" type= "type" value= "value" format= "specifier" emptyok= "false|true" size= " n "maxlength=" n "tabindex=" n "/>
Used to enter text, except that the Name property is necessary, and other parameters are optional.
Related properties:
Title, the caption of the input box.
Type, the default value is text, and if you select password, the input data appears as *.
Name, specifies the name of the variable used to store the input text.
Value, similar to the same property of select, name is used to store variable data, and value is used to provide default values.
Format, which is used for formatting the input data, is available as follows, using the form of "one digit mark" and "* mark", which represents n-tagged characters, such as 3X, and the latter represents any marked character (less than the value of the MaxLength property).
Tag description
A any symbol or capital letter (excluding numbers)
A any symbol or lowercase letter (excluding numbers)
N any number (excluding symbols or letters)
X any symbol, number, or capital letter (cannot be changed to lowercase letters)
x any symbol, number, or lowercase letter (cannot be changed to uppercase letters)
M any symbol, number, or uppercase letter (can be changed to lowercase letters) or more than one character, default to uppercase
m any symbol, number, or lowercase letter (can be changed to uppercase letters) or multiple characters, default to lowercase
The MaxLength property specifies the maximum length of characters that a user can enter, with a maximum limit of 256 characters.
Emptyok property, which indicates whether the user can fill out the entry box, default to False.
Size property, the input box displays the length and is not currently supported.
The TabIndex property, which is similar to the choice in which the focus falls after the TAB key is pressed in an HTML form, which determines the order in which the number is left behind. Not currently supported.
Example:
<card>
<p>
The name:
<input type= "text" Name= "the" "/><br/>
Last Name:
<input type= "text" Name= "last"/><br/>
Age:
<input type= "text" name= "Age" format= "3N"/>
</p>
</card>