Tell us what’s happening:
Not understanding how to implement value at all. Also, it does not make any type of sense to me.
Thanks
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">
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36
.
Challenge: Use the value attribute with Radio Buttons and Checkboxes
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
When a form gets submitted, the data is sent to the server and includes entries for the options selected. Inputs of type radio and checkbox report their values from the value attribute.
<form action="/submit-cat-photo">
<label><input type="radio" value="indoor" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" value="outdoor"name="indoor-outdoor"> Outdoor</label><br>
<label><input type="checkbox" value="loving"name="personality"> Loving</label>
<label><input type="checkbox" value="lazy"name="personality"> Lazy</label>
<label><input type="checkbox" value="energetic"name="personality"> Energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
Thanks, could not understand this until you arrived.
Thanks, again.
It’s great to see your enthusiasm for helping, but it’s better to guide a person to the answer than just giving them the code.
I have been working on this all day and it finally made some form of sense.