From 9dc3073003e47aab4bf29ebc5216b4cccb73af0c Mon Sep 17 00:00:00 2001 From: darthm3gatron Date: Fri, 29 Dec 2017 10:57:38 -0800 Subject: [PATCH] fix(seed): Best practice for radio button (#16349) --- challenges/01-responsive-web-design/basic-html-and-html5.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/challenges/01-responsive-web-design/basic-html-and-html5.json b/challenges/01-responsive-web-design/basic-html-and-html5.json index 7d202abb09..8a548aa2f8 100644 --- a/challenges/01-responsive-web-design/basic-html-and-html5.json +++ b/challenges/01-responsive-web-design/basic-html-and-html5.json @@ -1769,7 +1769,8 @@ "Each of your radio buttons should be nested within its own label element.", "All related radio buttons should have the same name attribute.", "Here's an example of a radio button:", - "<label><input type=\"radio\" name=\"indoor-outdoor\"> Indoor</label>", + "
<label for=\"indoor\">
<input type=\"radio\" name=\"indoor-outdoor\">Indoor
</label>
", + "It is considered best practice to set the for attribute for assistive technologies to be able to link the relationship between the label and the child elements such as an input in this case.", "
", "Add a pair of radio buttons to your form. One should have the option of indoor and the other should have the option of outdoor. Both should share the name attribute of indoor-outdoor." ],