Chapter 10: Design Issues
472
form controls gain focus is not the order in which you would expect to fill out the form, you should
use the tabindex attribute, which can take a value of 0 to 32,767.
(Chapter 5 covered this attribute in
more detail.
)
The...
More
Chapter 10: Design Issues
472
form controls gain focus is not the order in which you would expect to fill out the form, you should
use the tabindex attribute, which can take a value of 0 to 32,767.
(Chapter 5 covered this attribute in
more detail.
)
The tabindex attribute can be used on the following elements:
<a> <area> <button> <input> <object> <select> <textarea>
In Chapter 12, you will see an example of how you can automatically give focus to a form element
when the page loads.
You will also see how to affect the appearance of the form controls that currently
have focus.
Don’t Rely on Color to Convey Information
While color can be a very powerful tool in aiding the understanding of forms, you should never rely on
a color alone to convey information, and you must ensure that there is enough contrast between colors to
make the distinction clear.
Figure 10-56 shows an example of a form that uses color to indicate which items are required, but
because this book is printed in black
Less