How It Works: Using Controls to Build Web Forms
Explore how to build web forms using HTML controls like input fields and labels. Understand the role of attributes such as for, id, name, rows, and cols in controlling form behavior and data submission. Learn to create forms that provide usability and send data correctly to servers.
We'll cover the following...
We'll cover the following...
How it works
In the previous exercise, you added a number of text controls to the form. The markup you inserted in step two contained two <fieldset> sections, each having its own <legend>. The first section had <input> tags with the “text” type.
The second one has two fields with “password” type, and that is why the related textboxes masked the text typed in.
Code for Our Form
When you ...