Let’s break down the four error messages because there is some confusion here
Within the “img-div” element, I should see an element with a corresponding id=“image”.
Here is your image element
<img src="https://thumbor.forbes.com/thumbor/fit-in/416x416/filters%3Aformat%28jpg%29/https%3A%2F%2Fspecials-images.forbesimg.com%2Fimageserve%2F5ed578988b3c370006234c35%2F0x0.jpg%3Fbackground%3D000000%26cropX1%3D43%26cropX2%3D1074%26cropY1%3D49%26cropY2%3D1080" class="drake-image thin-black-border" id="MuscianDrake" alt= "drake's face">
You wrote this for the id
id="MuscianDrake"
But the error message is telling you this
id="image"
Here is the next error message
5. Within the “img-div” element, I should see either a <figcaption>
or <div>
element with a corresponding id="img-caption"
that contains textual content describing the image shown in “img-div”.
Inside your img div you need to have another div element with an id of img-caption with a text caption for the image.
<div id= "img-div">
<div ID GOES HERE>
Write some sort of caption here about drake
</div>
</div>
Here are the last two error messages
The <img>
element should responsively resize, relative to the width of its parent element, without exceeding its original size.
The <img>
element should be centered within its parent element.
What you have now isn’t going to work.
.drake-image {
transform: scale(1);
}
You will need to google two things.
- How to center an image css
- How to create a responsive image css
The first results will give you the exact code you need.
Once you make all of those changes then the test will pass.
If you run into any more issues passing the test then make sure to read the full error messages.
Hope that helps!