From d51460dba8ac0c13bc618c90529c22fe4bcc01d7 Mon Sep 17 00:00:00 2001 From: Hassaan Pasha Date: Mon, 5 Apr 2021 11:41:31 +0500 Subject: [PATCH] fix (curriculum): added top level label-input pair to challenge (#41717) * fix (curriculum): added top level label-input pair to challenge * Update curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> --- .../create-a-set-of-radio-buttons.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md b/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md index 95b3fb19c4..89c62ddcfb 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md @@ -24,7 +24,14 @@ Here's an example of a radio button: ``` -It is considered best practice to set a `for` attribute on the `label` element, with a value that matches the value of the `id` attribute of the `input` element. This allows assistive technologies to create a linked relationship between the label and the child `input` element. For example: +It is considered best practice to set a `for` attribute on the `label` element, with a value that matches the value of the `id` attribute of the `input` element. This allows assistive technologies to create a linked relationship between the label and the related `input` element. For example: + +```html + + +``` + +We can also nest the `input` element within the `label` tags: ```html