<input type="text" name="varName" value="Original text" maxlength="50" size="40">
- The name attribute specifies the name of the variable.
- The value attribute specifies the text that is going to be displayed when the form is presented for the first time. This is the value that will be associated to the variable when the form is submitted to the server (it's the actual content of the text box). This is different to the placeholder attribute, which is not associated with the variable.
- The maxlength attribute specifies the maximum character limit allowed to be entered in the text box. There can also be a minlength attribute.
- The size attribute specifies the horizontal length of the text box, in characters. This should be established by CSS rules.