# Https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/use-the-value-attribute-with-radio-buttons-and-checkboxes

**URL:** <https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [October 19, 2019, 9:29am UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887 "2019-10-19T09:29:32Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![KittyKora](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kittykora/32/124629_2.png) [@KittyKora](https://forum.freecodecamp.org/u/KittyKora)\
**Post date:** [October 19, 2019, 1:46pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/22 "2019-10-19T13:46:13Z")

</div>

then copy past it here onto the forums :3

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [October 19, 2019, 1:51pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/23 "2019-10-19T13:51:37Z")

</div>

in the starting code there are some radio and checkbox elements, they are missing a `value` attribute and the only thing you need to do is to add the `value` attribute to the existing radio and checkbox elements

you don’t need to create new checkboxes or radio elements - also the tests are expecting you to fix the existing ones to show you understand how to add the value attribute

---

<div class="post-metadata">

**Author:** ![ifydechu](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ifydechu/32/126839_2.png) [@ifydechu](https://forum.freecodecamp.org/u/ifydechu)\
**Post date:** [October 19, 2019, 2:21pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/24 "2019-10-19T14:21:16Z")

</div>

okay thanks you are a life saver.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [October 19, 2019, 2:21pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/25 "2019-10-19T14:21:55Z")

</div>

awesome!! happy coding

---

<div class="post-metadata">

**Author:** ![ifydechu](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ifydechu/32/126839_2.png) [@ifydechu](https://forum.freecodecamp.org/u/ifydechu)\
**Post date:** [October 19, 2019, 2:24pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/26 "2019-10-19T14:24:28Z")

</div>

But not that i have solved the code:blush:

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [October 19, 2019, 2:24pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/27 "2019-10-19T14:24:56Z")

</div>

post your current code, and what tests you are not passing, let’s see

---

<div class="post-metadata">

**Author:** ![ifydechu](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ifydechu/32/126839_2.png) [@ifydechu](https://forum.freecodecamp.org/u/ifydechu)\
**Post date:** [October 20, 2019, 11:15pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/28 "2019-10-20T23:15:06Z")

</div>

```
<label type="checkbox" name="indoor-outdoor" value='loving'>
<label type="checkbox" name="indoor-outdoor" value='lazy'>
    <label type="checkbox" name="indoor-outdoor" value='energetic'>
```

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [October 21, 2019, 4:52am UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/29 "2019-10-21T04:52:58Z")

</div>

the whole code would be much better

but your label has invalid attributes, those attributes are for input elements not label elements

---

<div class="post-metadata">

**Author:** ![AmericanMadeBoy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/americanmadeboy/32/126575_2.png) [@AmericanMadeBoy](https://forum.freecodecamp.org/u/AmericanMadeBoy)\
**Post date:** [October 24, 2019, 9:17pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/30 "2019-10-24T21:17:21Z")

</div>

still lost trying to figure this one out can you help?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [October 24, 2019, 9:24pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/31 "2019-10-24T21:24:20Z")

</div>

if you use the Ask for Help button you will create a post with your code included. Your code is _essential_ to help you, otherwise we don’t know what’s going wrong

---

<div class="post-metadata">

**Author:** ![cris33](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cris33](https://forum.freecodecamp.org/u/cris33)\
**Post date:** [May 19, 2020, 11:43am UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/33 "2020-05-19T11:43:01Z")

</div>

I find the exercise really unclear the way it’s explained and written i literally had to look at the solution, copy and paste it.

---

<div class="post-metadata">

**Author:** ![Catalactics](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/catalactics/32/151364_2.png) [@Catalactics](https://forum.freecodecamp.org/u/Catalactics)\
**Post date:** [May 19, 2020, 11:46am UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/34 "2020-05-19T11:46:52Z")

</div>

Well, that is not how you learn, you have to try to figure it out yourself. If you need help there is a button to ask for help in the forums, and there are a lot of people that will help you.

 ![Getting Help](https://global.discourse-cdn.com/freecodecamp/original/3X/3/3/33d58935e44a2b8ee492493ac878571db5f22562.gif)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 6, 2021, 9:16pm UTC](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887/35 "2021-02-06T21:16:27Z")

</div>

Closed on February 6, 2021, 9:16pm UTC



[Previous page](https://forum.freecodecamp.org/t/https-www-freecodecamp-org-learn-responsive-web-design-basic-html-and-html5-use-the-value-attribute-with-radio-buttons-and-checkboxes/322887.md?page=1)
