However, you should see one glaring addition: inside the fieldset [64] elements is an ordered list whose list items wrap around each of the form element/label pairs that we're using.
The reason for this addition? We need some extra markup in order to allow for all of the styling that we'll do to our forms in this chapter. There are just not enough styling hooks in the standard fieldset-label structure to allow us to provide robust borders, background colors, and column alignment.
There are a number of superfluous elements that we could add to the form that would grant us the extra styling hooks. We could move the form elements inside their label [65] elements and wrap the label [66] text in a span [67], or wrap a div [68] around each form element/label pair. However, none of those choices would really contribute anything to the markup other than its presence.
The beauty of using an ordered list is that it adds an extra level of semantics to the structure of the form, and also makes the form display quite well in the absence of styles (say, on legacy browsers such as Netscape 4, or even simple mobile devices).
.......
If you're vehemently opposed to the inclusion of an ordered list inside your form.markup, you can easily substitute it for some other wrapper element; all you need is one extra container around each form element/label pair in order to style your forms any way you want.
Bookmarks