Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
420
Chapter 16 Using HTML Forms
16.10 Grouping Controls
HTML 4.0 defines the
FIELDSET
element, with an associated
LEGEND
, that
can be used to visually group controls within a form. This capability is quite
useful but is supported only by Internet Explorer. Hopefully, Netscape ver
sion 5 will add support for this element. In the meantime, you should reserve
use of this element to intranet applications where all your users are using
Internet Explorer.
Core Warning
As of version 4.7, Netscape does not support the
FIELDSET
element.
HTML Element:
Attributes:
None.
This element is used as a container to enclose controls and, optionally, a
LEG
END
element. It has no attributes beyond the universal ones for style sheets,
language, and so forth. Listing 16.7 gives an example, with the result shown
in Figure 16 25.
Figure 16 25 The FIELDSET element lets you visually group related controls.
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved