Learn HTML by Building a Cat Photo App - Step 46

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

It’s asking me to add an id attribute, but never showed me what an id attribute even looks like so I have no idea what to even type. I looked up what an id attribute looks like in HTML and its saying I should be using #? Not sure what to do here, the lesson isn’t giving me enough information for me to know what to put.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
        <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
      </section>
      <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
        <ul>
          <li>cat nip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
          <figcaption>Cats <em>love</em> lasagna.</figcaption>  
        </figure>
        <h3>Top 3 things cats hate:</h3>
        <ol>
          <li>flea treatment</li>
          <li>thunder</li>
          <li>other cats</li>
        </ol>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
        </figure>
      </section>
      <section>
        <h2>Cat Form</h2>
        <form action="https://freecatphotoapp.com/submit-cat-photo">

<!-- User Editable Region -->

         <label><input type="radio">Indoor</label>

<!-- User Editable Region -->

          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>
        </form>
      </section>
    </main>
  </body>
</html>

Your browser information:

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

Challenge: Learn HTML by Building a Cat Photo App - Step 46

Link to the challenge:

The id attribute is used to identify specific HTML elements. Each id attribute’s value must be unique from all other id values for the entire page.

Add an id attribute with the value indoor to the radio button. When elements have multiple attributes, the order of the attributes doesn’t matter.

Hi!
yes you have to put id=“indoor” inside of input

So anything that consists of =“BLANK” is an attribute?

what makes you say that?
please specify
I don’t think you understand the requirement
read it again and think about it for a moment and you’ll see it makes sense

Hi,
:smiley:

I’m a beginner and I just figured it out so i’ll try to help you find the answer.

The radio button already have a type attribut

Which explain Overdose’s first answer (thanks btw :wink:)

You just have to create a id attribut and put it next to the other attribut.

Hope that was helpful

Hi @xUNTOUCHABLEx ,
In HTML elements, we can put additional attributes with some values, so it makes the particular ELEMENT more specific than its default behavior.

For example, this is a button element with an attribute called type and the value of submit .

<button type="submit">My Button</button>

Hope you will understand.

According to your explanation, you are stuck with id attribute.
So, try to add an attribute called id and assign the proper value that is given in the challenge.
Refer above example.

me too I’m stuck here

I Found It Here :

<input id="indoor"type=“radio”> Indoor

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