<label for="gender" required>
<input id="gender" type="radio" name="gender" value="male">male<br/>
<input id="gender" type="radio" name="gender" value="female">female<br/>
</label>
Do you have a question?
yes i tryed t make it required but its not working
It’s hard to help without more context, but it looks like you have a typo in your label element.
corrected it still not working
required is not an attribute on label
you should also have one label for each radio button
so u cannot use 1 label for many inputs?
also you can’t have an id element being repeated on multiple elements, an id must be unique