Basic HTML and HTML5: Use the value attribute with Radio Buttons and Checkboxes (me again)

Tell us what’s happening:
Hey, It’s me again, thanks a lot for your help, I was watching a video and I saw that all that I did it seemed right but I don’t know what is the problem.


3:28

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"value="indoor" name="indoor-outdoor"> Indoor</label>
			<label><input type="radio"value ="outdoor" name="indoor-outdoor">Outdoor</label></br>
<label><input type="checkbox"name="personality"><value="loving">Loving </label>
<label><input type="checkbox"name="personality"><value="lazy">Lazy </Label>
<label><input type="checkbox"name="personality"><value="energetic">Energetic</label><br>
			<input type="text" placeholder="cat photo URL" required>
			<button type="submit">Submit</button>
		</form>
</main>

Your browser information:

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

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/use-the-value-attribute-with-radio-buttons-and-checkboxes

You shouldn’t have ‘value’ wrapped in ‘< >’ (it’s not an HTML tag).
Value is an attribute of the <input> tag (like name and type).

1 Like