Last active
September 4, 2022 14:49
-
-
Save luismartinezs/fb91a25d03c3747c7da5dc784a0ceeca to your computer and use it in GitHub Desktop.
Fieldset and legend #a11y #html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset --> | |
<form> | |
<fieldset> | |
<legend>Choose your favorite monster</legend> | |
<input type="radio" id="kraken" name="monster" /> | |
<label for="kraken">Kraken</label><br /> | |
<input type="radio" id="sasquatch" name="monster" /> | |
<label for="sasquatch">Sasquatch</label><br /> | |
<input type="radio" id="mothman" name="monster" /> | |
<label for="mothman">Mothman</label> | |
</fieldset> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment