I am currently working on a quiz related to creating radio buttons and encountered some issues with the submission. Despite following the instructions, my code was marked incorrect.
Here is the code I submitted:
To ensure the radio buttons are positioned above the text input, and follow the correct syntax, here’s how you can adjust your HTML:
html
Copy code
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<section>
<h2>Cat Photos</h2>
<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">
<!-- Radio buttons for location options -->
<input id="indoor" type="radio" name="indoor-outdoor" value="indoor">
<label for="indoor">Indoor</label><br>
<input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor">
<label for="outdoor">Outdoor</label><br>
<!-- Text input for URL -->
<input type="text" name="catphotourl" placeholder="cat photo URL" required><br>
<!-- Submit button -->
<button type="submit">Submit</button>
</form>
</section>
</main>