![]() ![]() The purpose of this name attribute is to identify the value for this input box to our processing script. In the second example, in addition to the type attribute, we used the name attribute. ![]() If we don't tell the user what we are asking the user to type inside the input box (like in the first example), the user could type nothing or anything! So to avoid that, use a small description for your text boxes. We ask the user to enter their first name. In comparison, our second example is more informative as we let the user know what the user is supposed to type inside the input box. The output of this HTML code is shown on the right hand side. Inside this form tag, we placed an input box by using the tag. In the first example, our HTML code starts the form with the tag. To create a text box (also called input box), use the tag and set the type attribute to "text". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |