XHTML Tutorial - form
Form users is an important channel for the submission of information. This section will form on the basis of knowledge.
The handbook after more closely linked, we recommend that you read from the first quarter onwards.
Form tag <form>
Form a <form> begins with the tag. Users registered member, the voting forms, and so on need to achieve. Of course, relying solely on the XHTML is not able to deal with these forms, and if you want to deal with these table but you need to use some similar PHP OR ASP page technical background.
In the form <input>
Below we have to introduce two common forms of elements:
1. Text box
<form> Name: <input type = "text" name = "user" /> <br/> </ form>
2. Password box
<form> Name: <input type = "password" name = "pass" /> <br/> </ form>
Can be seen, these two elements have used a form <input> label, but the contents of completing the password box is not visible. Their decision is the difference in the types of labels <input> attributes "type" attribute value. For example, text is a text box, and password is password. You should note, <imput> Tags also an empty label. He did not terminate the label. We must remember that in the back with a "/" to comply with the requirements of XHTML.
Commonly used form elements there are many, such as radio and beneficiation complex, but since we are not able to deal with the form, it can not understand the meaning of the form. So here is not introduced, the future if we continue to learn the background technology, you will naturally form in the establishment of understanding the role played by the.
Enter the next section: XHTML summary
