Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>The label for the first radio button is outside the form, but still a part of the form. Try clicking the text label to toggle the male radio button.</p> <form action="http://www.w3schools.com/tags/demo_form.asp" id="form1"> <input type="radio" name="sex" id="male" value="male"><br> <label for="female">Female</label> <input type="radio" name="sex" id="female" value="female"><br><br> <input type="submit" value="Submit"> </form> <label for="male" form="form1">Male</label> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_label_form by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:23:55 GMT --> </html>
Result:
Try it Yourself - © w3schools.com