Please i need help on this step 40,

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>
      <a href=""><img src="" alt="A cute orange cat lying on its back."></a>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
        <li>cat nip</li>
        <li>laser pointers</li>
        <img src="" alt="A slice of lasagna on a plate.">
        <figcaption>Cats <em>love</em> lasagna.</figcaption>  
      <h3>Top 3 things cats hate:</h3>
        <li>flea treatment</li>
        <li>other cats</li>
        <img src="" alt="Five cats looking around a field.">
        <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
      <h2>Cat Form</h2>
      <form action="">
        <input type="text" name="catphotourl" placeholder="cat photo URL"> require"</input>
  **Your browser information:**

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

Challenge: Step 40

Link to the challenge:

1 Like

Hi @Lexis

You just have a typo. You should read the instructions carefully:
" There’s no need to set a VALUE to the required attribute. Instead, just ADD the WORD required to the input element, making sure there is space between it and other attributes."

What that means, you dont need to do this:
<input attributeName="someValue">
because is a boolean atribute, wich it means if a required attribute exist inside the input, then the input value is needed (the browser parse required=true and the user will need to write something there). If there isnt a required attribute, then that input is NOT required (required = false).
The syntax is easy, you just need to write the attribute name, without any value, that is all. You can check here also:

Try to read the link above till you understand, solve it is good but it is much better understand what you are really doing.
I hope that helps. Happy coding! :muscle: :sunglasses:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.