Alt attribute error on Tribute Project

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!

Here’s the link to my Pen: https://codepen.io/manusanv/pen/qBbNypW

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36.

Challenge: Build a Tribute Page

Link to the challenge:

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.

1 Like

Thank you so much for your feedback, I really appreciate it.