--- id: 5ef9b03c81a63668521804e1 title: Step 49 challengeType: 0 dashedName: step-49 --- # --description-- The `fieldset` element is used to group related inputs and labels together in a web form. `fieldset` elements are block-level elements, meaning that they appear on a new line. Nest the `Indoor` and `Outdoor` radio buttons within a `fieldset` element, and don't forget to indent the radio buttons. # --hints-- Both radio buttons should still be located between opening and closing `label` element tags. ```js const labelChildNodes = [...$('label')].map((node) => [...node.childNodes]); assert( labelChildNodes.filter((childNode) => childNode[0].nodeName === 'INPUT') .length === 2 ); ``` Your `fieldset` element should have an opening tag. Opening tags have the following syntax: ``. ```js assert(document.querySelector('fieldset')); ``` Your `fieldset` element should have a closing tag. Closing tags have a `/` just after the `<` character. ```js assert(code.match(/<\/fieldset\>/)); ``` Both radio button and associated labels should be between the opening and closing tags of the `fieldset` element. ```js const radioButtons = [...$('input[type="radio"]')]; assert( radioButtons.every((btn) => btn.parentNode.parentNode.nodeName === 'FIELDSET') ); ``` # --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-- --fcc-editable-region--
```