20. XHTML MP Input Elements

Like HTML, XHTML MP provides numerous input element types for obtaining data from users. The following input element types are available in XHTML MP:

  1. Text field

  2. Password field

  3. Checkbox

  4. Radio button

  5. Hidden field

All of the above input elements are created with the <input> element. To send the user data to the server, the <input> element has to be used in conjunction with the <form> element. The <form> element will be mentioned in more detail later at the "Sending Data to the Server in XHTML MP" section.

The type attribute of the <input> element defines the input element type in XHTML MP.

The name attribute of the <input> element specifies the name of the input element. The name will be used to retrieve the user data at the server.


Previous Page Page 29 of 36 Next Page


Feedback Form (ExpandCollapse)

What do you think about this web page?






(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.

A button for going back to the top of this page