--- id: 5ef9b03c81a63668521804e1 title: Part 49 challengeType: 0 isHidden: true --- ## 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 buttons.
## Tests
```yml tests: - text: Both radio buttons should still be located between opening and closing `label` element tags. testString: | const labelChildNodes = [ ...$('label') ].map(node => [ ...node.childNodes ]); assert( labelChildNodes.filter(childNode => childNode[0].nodeName === "INPUT").length === 2 ); - text: "Your `fieldset` element should have an opening tag. Opening tags have the following syntax: ``." testString: assert( document.querySelector('fieldset') ); - text: Your `fieldset` element should have a closing tag. Closing tags have a `/` just after the `<` character. testString: assert( code.match(/<\/fieldset\>/) ); - text: Both radio button and associated labels should be between the opening and closing tags of the `fieldset` element. testString: | const radioButtons = [ ...$('input[type="radio"]') ]; assert( radioButtons.every(btn => btn.parentNode.parentNode.nodeName === "FIELDSET") ); ```
## Challenge Seed
```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--
```