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.
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.');
```
Click here for cat photos.
Things cats love:
Top 3 things cats hate: