I am asked to obtain loving in the checkbox and indoor(&outdoor) for the radio buttons. The code is suppossed to be correct.Isn’t it? Still i m not getting the correct result as per freecodecamp
Your code so far
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>
<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
<label><input type="radio" name="indoor" value="indoor">indoor</label>
<label><input type="radio" name="outdoor" value="outdoor">outdoor</label>
<label><input type="checkbox" name="loving" value="loving">loving</label>
<label><input type="checkbox" name="lazy" value="lazy"> Lazy</label>
<label><input type="checkbox" name="energetic" value="energetic"> Energetic</label>
<button type="submit">Submit</button>
</form>
</main>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36
.
Challenge: Use the value attribute with Radio Buttons and Checkboxes
Link to the challenge: