<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
corrected it still not working
required is not an attribute on
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