DEV Community

Discussion on: Fieldset, this stranger.

Collapse
 
cchana profile image
Charanjit Chana • Edited

I use the < fieldset > tag often rather than a < div >, more semantic IMO and the < legend > tag is a nice way of clearly defining what it's all for.

Hadn't considered even trying the disable property and looking at the specs you can point to a form while not being part of it. Nice!

Collapse
 
equinusocio profile image
Mattia Astorino • Edited

Yes, the form attribute can be used also on other elements like the submit button.