Fieldsets with Legends

How can I implement a fieldset tag with a legend tag?
I suspect that I could create something like a fieldset with a legend tag using CSS and divs, but that seems a bit messy when the elements have been part of the HTML spec since 3.2 (or something like that).

1 Like

I just watched Develop custom components for WeWeb - YouTube, should I create a new custom component for a fieldset with a legend tag?

Hi pete, you can create a custom element to have a real fieldset tag customizable

Or with some trick, absolute position, negative margin, you should be able to reproduce a fieldset tag with basic element from WeWeb