Unable to start debugging on the web server - 1406 Introduction to HyperText Markup Language 4: Part
1406 Introduction to HyperText Markup Language 4: Part 2 Appendix J
The input type = “text” inserts a one-line text box into the form (line 36). A good use of the textual input element is for names or other one-line pieces of information. The labelelement on lines 35 37 provide a description for the input element on line 36. We also use the size attribute of the inputelement to specify the width of the text input, measured in characters. You can also set a maximum number of characters that the text input will accept using the maxlengthattribute. Good Programming Practice J.2 When using input elements in forms, be sure to leave enough space with the maxlength attribute for users to input the pertinent information. Common Programming Error J.3 Forgetting to include a label element for each form element is a design error. Without these labels, users will have no way of knowing what the function of individual form elements is. There are two types of inputelements in lines 42 43 that should be inserted into every form. The type = “submit” input element allows the user to submit the data entered in the form to the server for processing. Most visual Web browsers place a button in the form that submits the data when clicked. The value attribute changes the text displayed on the button (the default value is “submit”). The input element type = “reset” allows a user to reset all form elements to the default values. This can help the user correct mistakes or simply start over. As with the submitinput, the valueattribute of the resetinputelement affects the text of the button on the screen, but does not affect its functionality. Common Programming Error J.4 Be sure to close your form code with the
tag. Neglecting to do so is an error and can affect the functionality of other forms on the same page. J.5 More Complex HTML Forms We introduce additional form input options in Fig. J.4. 1 3 4 5 6 7 8
9 10 Fig. J.4 Fig. J.Fig..Fi J4g. J.4J.4Form including textareas, password boxes and checkboxes. (Part 1 of 3.) Fig.Visit our web design programs services for an affordable and reliable webhost to suit all your needs.