E-mail List Archives
Thread: Is fieldset important if there are only two or three fields with on submit
Number of posts in this thread: 2 (In chronological order)
From: Nancy Johnson
Date: Thu, Feb 05 2015 7:45AM
Subject: Is fieldset important if there are only two or three fields with on submit
No previous message | Next message →
Is use of fieldset important if it is say it is a login screen with
2 or 3 fields?
Thanks
Nancy
From: Jukka K. Korpela
Date: Thu, Feb 05 2015 8:24AM
Subject: Re: Is fieldset important if there are only two or three fields with on submit
← Previous message | No next message
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