Hi! I’ve finished my Tribute Page in CodePen, but when I run the HTML Analysis I get the following error: “An alt attribute must be present on elements.” , even though I’m seeing the alt attribute in the code and I think it’s all right. I can’t figure out what’s the error and I’ve been stuck for days now. Thanks in advance!
Please include the test script when asking for help. Your project is not passing all the tests.
You have an empty image element before the one with the src set. The validator is likely complaining about that element.
<img id="image">
<img src="https://www.laprensa.com.ar/multimedios/imgs/106426_620.jpg" alt="Doctor sitting at his desk looking at the camera">
You need to move the id to the image element with the src and then delete the first element.
<img id="image" src="https://www.laprensa.com.ar/multimedios/imgs/106426_620.jpg" alt="Doctor sitting at his desk looking at the camera">
Also, you can’t wrap the ul in a p.
Edit: The link doesn’t have the correct id and you need to move the img selector out of the media query. You also need an image that is served over https for Codepen, find a different image link.