--- id: 5efada803cbd2bbdab94e332 title: Part 28 challengeType: 0 dashedName: part-28 --- # --description-- Inside the `figure` element you just added, nest an `img` element with a `src` attribute set to `https://bit.ly/fcc-cats`. # --hints-- Your second `figure` element should have an opening tag. Opening tags have this syntax: ``. ```js assert(document.querySelectorAll('figure').length === 2); ``` Your second `figure` element should have a closing tag. Closing tags have a `/` just after the `<` character. ```js assert(code.match(/<\/figure>/g).length === 2); ``` There should be a second `figure` element right above the second `section` element's closing tag. You have them in the wrong order. ```js assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE'); ``` You should have a third `img` element nested in the `figure` element. ```js const catsImg = document.querySelectorAll('figure > img')[1]; assert( catsImg && catsImg.getAttribute('src').toLowerCase() === 'https://bit.ly/fcc-cats' ); ``` The third image should have an `src` attribute set to `https://bit.ly/fcc-cats`. ```js const catsImg = document.querySelectorAll('figure > img')[1]; assert( catsImg && catsImg.getAttribute('src').toLowerCase() === 'https://bit.ly/fcc-cats' ); ``` Although you have set the new image's `src` to the correct URL, it is recommended to always surround the value of an attribute with quotation marks. ```js assert(!/\

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
--fcc-editable-region--
--fcc-editable-region--
```