How to make a procedure
that will create a box that users can enter text into.
This procedure creates a
box that users can enter text into
Type the following between
the opening form tag -- <FORM> -- and the closing form tag --
</FORM> -- to note that users will enter text:
<INPUT TYPE="text"
Press the space bar.
Type NAME="?" to
name the text box. Replace the question mark with a word that describes the
text box. Press the spacebar.
Type SIZE="?" to
define the width of your text box. Replace the question mark with the width you
want to use.
Type
MAXLENGTH="?" to define the number of characters that viewers can
enter into the text box. Replace the question mark with a number.
Type > to close the
code and complete the text box.
Your final code should
look like:
<FORM
METHOD=post ACTION=example-form.html>
<INPUT
TYPE="text" NAME="Example-Form" SIZE="40"
MAXLENGTH="35">
</FORM>
Open a new Web browser to
verify that your page displays the text box correctly. Test the text box and
verify that you are able to enter text.
No comments:
Post a Comment