I’m still not sure what I’m missing. Can someone help me figure out why I still get 7/10 on this project?
Here’s mine: https://codepen.io/Alyly/pen/WNEBJyg?editors=1100
I’m still not sure what I’m missing. Can someone help me figure out why I still get 7/10 on this project?
Here’s mine: https://codepen.io/Alyly/pen/WNEBJyg?editors=1100
the reasons are
1 => Within the “img-div” element, I should see an element with a corresponding id=“image”.
2 => The element should responsively resize, relative to the width of its parent element, without exceeding its original size.
3 => The element should be centered within its parent element.
Welcome to the forums @eydi.
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.
The first failing message says
Within the "img-div" element, I should see an <img> element with a corresponding id="image".
expected null to not equal null
AssertionError: expected null to not equal null
Do you understand what the test is telling you?
When you correct this error the other tests will pass.
On a side note, do not use the <br>
element to force line breaks or spacing. That’s what CSS is for.
Oh! Thank you so much for taking the time on reviewing my project! I didn’t know I can click the red button to see the error. I was wondering what did I miss. But everything you said is indeed very helpful! Thank you for the help and tips about < br > element! I’ll keep that in mind.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.