--- id: 5efada803cbd2bbdab94e332 title: Part 28 challengeType: 0 --- ## Description
Inside the `figure` element you just added, nest an `img` element with a `src` attribute set to `https://bit.ly/fcc-cats`.
## Tests
```yml tests: - text: 'Your second `figure` element should have an opening tag. Opening tags have this syntax: ``.' testString: assert( document.querySelectorAll('figure').length === 2 ); - text: Your second `figure` element should have a closing tag. Closing tags have a `/` just after the `<` character. testString: assert( code.match(/<\/figure>/g).length === 2 ); - text: There should be a second `figure` element right above the second `section` element's closing tag. You have them in the wrong order. testString: assert( $('main > section')[1].lastElementChild.nodeName === 'FIGURE' ); - text: You should have a third `img` element nested in the `figure` element. testString: const catsImg = document.querySelectorAll('figure > img')[1]; assert( catsImg && catsImg.getAttribute('src').toLowerCase() === 'https://bit.ly/fcc-cats'); - text: The third image should have an `src` attribute set to `https://bit.ly/fcc-cats`. testString: | const catsImg = document.querySelectorAll('figure > img')[1]; assert( catsImg && catsImg.getAttribute('src').toLowerCase() === 'https://bit.ly/fcc-cats'); - text: 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. testString: assert( !/\ ## 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
--fcc-editable-region--
--fcc-editable-region--
```