I’ve been looking at multiple suggestions on the forums to complete this but so far I have only been able to get 6/10. I am not sure what I need to do to get this right. If anyone could help that would be great. Thank you!
The last two tests are failing because you haven’t written any css yet.
For this test,
Within the “img-div” element, I should see an element with a corresponding id=“image”.
You wrote this <id="image">
which is not valid html.
The test is looking for an image tag with the id of image.
For this test
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”.
It is looking for a figcaption or div element but you wrote this <img id="img-caption">
@iphae, when a test fails click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.
Before you do that though you have syntax errors you need to look at. Run your HTML code through the [W3C validator
(The W3C Markup Validation Service). (you can ignore the first warning and first two errors)
For instance, <id> is not an HTML element. An id is an attribute.
Ok thank you! I was able to make them all pass. However, now I am having trouble with the CSS portion of it. I had it styled as a green background but its not appearing at all. I have no idea why. Can you help me with this?
Also another question… before I put in body { it tested as 8/10 for some reason but then when I added just that amount in it showed up as 10/10 and I have no idea why.