--- id: bad87fee1348bd9acde08812 title: Make Images Mobile Responsive challengeType: 0 --- ## Description
First, add a new image below the existing one. Set its src attribute to https://bit.ly/fcc-running-cats. It would be great if this image could be exactly the width of our phone's screen. Fortunately, with Bootstrap, all we need to do is add the img-responsive class to your image. Do this, and the image should perfectly fit the width of your page.
## Instructions
## Tests
```yml tests: - text: You should have a total of two images. testString: assert($("img").length === 2, 'You should have a total of two images.'); - text: Your new image should be below your old one and have the class img-responsive. testString: assert($("img:eq(1)").hasClass("img-responsive"), 'Your new image should be below your old one and have the class img-responsive.'); - text: Your new image should not have the class smaller-image. testString: assert(!$("img:eq(1)").hasClass("smaller-image"), 'Your new image should not have the class smaller-image.'); - text: Your new image should have a src of https://bit.ly/fcc-running-cats. testString: assert($("img:eq(1)").attr("src") === "https://bit.ly/fcc-running-cats", 'Your new image should have a src of https://bit.ly/fcc-running-cats.'); - text: Make sure your new img element has a closing angle bracket. testString: assert(code.match(//g).length === 2 && code.match(/img element has a closing angle bracket.'); ```
## Challenge Seed
```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```js // solution required ```