Password
Boxes
Password boxes are simply text boxes that displays ****
when the user types their password. There is no encryption or other
security. It simply prevents an onlooker from being able to see the
password as it is typed.
<input type="password" name="password" size="10">
Setting tab order
Setting the tab order for forms is the same as doing so
for links. Keep in mind that the first time a user presses the tab key,
it activates the address box. By default, the tab order follows the
order in which elements appear on the page. You can assign tab order
to text fields, password fields, checkboxes, radio buttons, text blocks,
menus and buttons, as well as to links and client-side image maps.
<input type="text" name="firstname" tabindex="1">
Disabling form elements
You can disable an element with the disabled attribute.
Keep in mind you will need a script that reenables the element based
on user action you define. For example, you may want to disable the
submit button to ensure the user has entered desired desired elsewhere
in the form. A script would then reenable the form by testing that the
user filled in required fields. Note that the element is grayed out
when it is disabled.
<input type="submit" name="submit" disabled>
Making elements read-only
Designers often want to display certain data in a form
that was already obtained, however, they do not want users to be able
to change the data. You can make elements read-only by using the readonly
attribute.
<textarea name="purchasehistory" cols="25"
rows="4" readonly>