SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 402 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

However, most apply an important
accessibility benefit: if you click the label, it gives focus to the corresponding form control
(in other words, it selects the form control related to the label). Note that the id attribute
??”absent from the form example earlier in the chapter??”is required for this. If it??™s
absent, clicking the text within the label element won??™t cause the browser to do anything.
The fieldset element enables you to group a set of related form controls to which you
apply a label via the legend element.

Personal information











A full list of controls is available in Appendix A (XHTML Reference).
THE ESSENTIAL GUIDE TO CSS AND HTML WEB DESIGN
318
As you can see from the previous screenshot, these elements combine to surround the relevant
form fields and labels with a border and provide the group with an explanatory title.
Adding tabindex attributes
The tabindex attribute was first mentioned in Chapter 5 (in the ???Using accesskey and
tabindex??? section). For forms, it??™s used to define the page??™s element tab order, and its
value can be set as anything from 0 to 32767.


Pages:
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6