Build a Recipe Page - Build a Recipe Page

Tell us what’s happening:

I have all but one completed on my recipe having a hard time with #20. all your img elements should have valid scr attribute and value, error keep showing up I tried the freecodecamp.org but it still didn’t work what am I doing wrong

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head> <meta charset="utf-8"> 
    <title> Hay Stack Recipe </title>
  </head>
  <body> 
    
    <h1> Hay Stack </h1>
    
    <p> This Hay Stack is my version of a taco salad. Made with doritoes. </p>
    <h2> Ingredients </h2>
    <ul><li> sweet chilli doritoes</li>
      <li> 1lb ground beef or turkey</li>
      <li> 1 pk of taco seasoning</li>
      <li> baked beans</li>
      <li> tostitos medium salsa con queso</li> <li>1 can of mild rotel</li> <li>brown sugar</l1> </ul>
      <h2> Instructions</h2>
      <ol> <li> cook ground beef/turkey med heat</li> <li> once meat is brown add taco seasoning and rotel</li> <li>cook beans add a little brown suger</li><li> put doritoes on plate add meat,beans,cheese,lettace and enjoy</li>
 <img scr="https://media.istockphoto.com/id/177031481/photo/nachos.jpg" alt= "Hay Stack ready for enjoyment"/>
</body>
  </html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a Recipe Page - Build a Recipe Page

Not sure if this is the issue but there is a space between the alt attribute and value
alt=“Hay Stack ready for enjoyment”

Although the in practice I think html is forgiving, FreeCodeCamps validation requires correct syntax

are you sure it says scr? I do not know of an attribute of that name

1 Like

yes this is what it says exactly “All your img elements should have a valid src
attribute and value.” It is confusing me

in your post right now there is not written scr

note that scr and src are two different things, only one of them is a valid attribute

This should resolve the issue

1 Like

Thank you so much that’s what I did wrong , I truly appreciate your assistance have an amazing day.