Step 50Passed
So i am at this step and they ask from me the following
The fieldset
element is used to group related inputs and labels together in a web form. fieldset
elements are block-level elements, meaning that they appear on a new line.
Nest the Indoor
and Outdoor
radio buttons within a fieldset
element, and don’t forget to indent the radio buttons.
This is what i did
<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">
<fieldset>
<label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor" > Indoor</label>
<label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor" > Outdoor</label>
<input type="text" name="catphotourl" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</fieldset>
</form>
</section>
</main>
What i did was nesting
< input type=“text” name=“catphotourl” placeholder=“cat photo URL” required>
- < button type=“submit”>Submit*
Inside filedset element.
And i still am not sure if this is what indent means, but I passed the code and from the preview i get in the course, looks like they align good enough, but i still think i made a mistake somewhere. how does it look for you guys? please give me an advice and sorry if am not making my self clear enough with the information that i’m giving.