- Definition and Usage
- The legend tag defines a caption for the fieldset element
- It groups related elements in forms
- Technical Features
- Supports both global and event attributes
- Default display is block with 2px padding
- Can be styled using CSS
- Examples
- Basic form with legend and input elements
- CSS-based styling of fieldset and legend
- Floating legend to right using CSS
- Default CSS settings include block display and no border