--- id: 5ef9b03c81a63668521804dd title: Part 44 challengeType: 0 dashedName: part-44 --- # --description-- `label` elements are used to help associate the text for an `input` element with the input element itself (especially for assistive technologies like screen readers). For example, `` makes it so clicking the word `cat` also selects the corresponding radio button. Nest your `radio` button inside a `label` element. # --hints-- You should make sure the radio button is still present. ```js assert($('input[type="radio"]')[0]); ``` The text ` Indoor` should be located directly to the right of your `radio` button. Make sure there is a space between the element and the text. You have either omitted the text or have a typo. ```js const radioInputElem = $('input')[0]; assert( radioInputElem.nextSibling.nodeValue.replace(/\s+/g, ' ').match(/ Indoor/i) ); ``` Your `label` element should have an opening tag. Opening tags have this syntax: ``. ```js assert(document.querySelector('label')); ``` Your `label` element should have a closing tag. Closing tags have a `/` just after the `<` character. ```js assert(code.match(/<\/label\>/)); ``` Your radio button and its text should all be located between the opening and closing tags of the `label` element. ```js const labelChildNodes = [...$('form > label')[0].childNodes]; assert( labelChildNodes.filter((childNode) => childNode.nodeName === 'INPUT').length ); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Cat Photos

Click here to view more cat photos.

A cute orange cat lying on its back.

Cat Lists

Things cats love:

  • cat nip
  • laser pointers
  • lasagna
A slice of lasagna on a plate.
Cats love lasagna.

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
Five cats looking around a field.
Cats hate other cats.

Cat Form

--fcc-editable-region-- Indoor --fcc-editable-region--
```