--- id: 5f0d4ab1b435f13ab6550052 title: Step 51 challengeType: 0 dashedName: step-51 --- # --description-- Next, you are going to add some new form `input` elements, so add another `fieldset` element directly below the current `fieldset` element. # --hints-- Your new `fieldset` element should have an opening tag. Opening tags have this syntax: ``. ```js assert(document.querySelectorAll('fieldset').length >= 2); ``` You should only add one opening `fieldset` tag. Please remove any extras. ```js assert(document.querySelectorAll('fieldset').length === 2); ``` Your new `fieldset` element should have a closing tag. Closing tags have a `/` just after the `<` character. ```js assert(code.match(/<\/fieldset>/g).length >= 2); ``` You should only add one closing `fieldset` tag. Please remove any extras. ```js assert(code.match(/<\/fieldset>/g).length === 2); ``` The second `fieldset` element should not be nested in the first `fieldset` element. ```js const childrenOf1stFieldset = [ ...document.querySelector('form > fieldset').children ]; const foundElems = childrenOf1stFieldset.filter((child) => { return child.nodeName === 'FIELDSET'; }); assert(foundElems.length === 0); ``` Both `fieldset` elements should be above the text field and its associated `label` element. They are out of order. ```js const formChildren = $('form')[0].children; assert( formChildren[0].nodeName === 'FIELDSET' && formChildren[1].nodeName === 'FIELDSET' && formChildren[2] && formChildren[2].nodeName === 'INPUT' && formChildren[2].getAttribute('type') === 'text' ); ``` Your new `fieldset` element should be below the existing `fieldset` element. You have them in the wrong order. ```js const fieldsetChildren = [...document.querySelectorAll('fieldset')].map( (elem) => elem.children ); assert(fieldsetChildren[0].length > fieldsetChildren[1].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--
Is your cat an indoor or outdoor cat?
--fcc-editable-region--
```