--- id: 5efae0543cbd2bbdab94e333 title: Part 29 challengeType: 0 dashedName: part-29 --- # --description-- To improve accessibility of the image you just added, add an `alt` attribute with the text `Five cats looking around a field.` # --hints-- Your `figure` element should have an opening tag. Opening tags have this syntax: ``. ```js assert(document.querySelectorAll('figure').length === 2); ``` Your `ol` 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 `figure` element right above the last `section` element's closing tag. ```js assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE'); ``` The Cats `img` element should be 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 Cats `img` element should have an `alt` attribute with the value `Five cats looking around a field.` ```js const catsImg = document.querySelectorAll('figure > img')[1]; assert( catsImg .getAttribute('alt') .replace(/\s+/g, ' ') .match(/^Five cats looking around a field\.?$/i) ); ``` # --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
--fcc-editable-region-- --fcc-editable-region--
```