WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Is fieldset important if there are only two or three fields with on submit

for

From: Jukka K. Korpela
Date: Feb 5, 2015 8:24AM


2015-02-05, 16:45, Nancy Johnson wrote:

> Is use of fieldset important if it is say it is a login screen with
> 2 or 3 fields?

Hardly. The purpose of <fieldset> is to group related fields and
associated content (labels, explanations, legend). Normally this makes
sense only when it helps the user to recognize the group as distinct
from the rest of a form, either on the basis of the special rendering of
<fieldset> or some other special treatment in a browser. Grouping all
fields of a form is rather pointless.

However, for a set of radio buttons, <fieldset> is generally useful to
indicate that the buttons belong together.

Yucca