Should we use fieldset
even for one search box input
? Which we use in header of the site usually?
No. There is no point in using fieldset elements unless you are dividing the form up into logical sets of fields.
It is excellent for (for example) marking up a set of fields for delivery address and some nearly identical ones for billing address. If you can't make sets (plural) don't use a fieldset element.
I think fieldset's aim is to split your form into semantic parts. If your field is the only one of its semantic part, then you should use a fieldset, as it add semantic.
What you shouldn't do, is to use fieldset for design purpose.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With