# What is the correct answer for input checked html

**URL:** <https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [January 23, 2022, 2:34pm UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843 "2022-01-23T14:34:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PouringReyyyn](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@PouringReyyyn](https://forum.freecodecamp.org/u/PouringReyyyn)\
**Post date:** [January 23, 2022, 2:34pm UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/1 "2022-01-23T14:34:20Z")

</div>

I’ve tried many things but the last two objectives always failed. The last two objectives are: You should not change the inner text of the `Indoor` label.

You should not change the inner text of the `Loving` label.

```
  **Your code so far**

```

```html

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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="https://www.freecatphotoapp.com/submit-cat-photo">
 <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> 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/74.0.3729.131 Safari/537.36`

**Challenge:** Check Radio Buttons and Checkboxes by Default

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/check-radio-buttons-and-checkboxes-by-default)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![xoxoKaralee](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/xoxokaralee/32/244414_2.png) [@xoxoKaralee](https://forum.freecodecamp.org/u/xoxoKaralee)\
**Post date:** [January 23, 2022, 3:37pm UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/2 "2022-01-23T15:37:43Z")

</div>

it looks like you deleted some of the existing code. It would be best to reset this step and follow the directions:  
`Set the first of your radio buttons and the first of your checkboxes to both be checked by default.`  
**Do not delete any existing code.** Just add the `checked` attribute to what it is telling you to.

---

<div class="post-metadata">

**Author:** ![PouringReyyyn](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@PouringReyyyn](https://forum.freecodecamp.org/u/PouringReyyyn)\
**Post date:** [January 24, 2022, 12:08am UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/3 "2022-01-24T00:08:59Z")

</div>

Hello, thank you for answering! I will try to redo the challenge. I hope it will be succesful this time. Thank you again and I hope you have a great day!

---

<div class="post-metadata">

**Author:** ![PouringReyyyn](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@PouringReyyyn](https://forum.freecodecamp.org/u/PouringReyyyn)\
**Post date:** [January 24, 2022, 12:24am UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/4 "2022-01-24T00:24:19Z")

</div>

I redo the challenge, but it’s still saying that I should not change both of “Indoor” and “Loving” labor. I just add checked attributes beside value on the label. What should I do? T.T

---

<div class="post-metadata">

**Author:** ![Roma](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/roma/32/112899_2.png) [@Roma](https://forum.freecodecamp.org/u/Roma)\
**Post date:** [January 24, 2022, 2:18am UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/5 "2022-01-24T02:18:04Z")

</div>

Your browser is kind of old. You should update it.  
You can try using a different browser.

We do need to see your updated code in order to be sure that everything has been entered correctly. If you’ve done the above re: the browsers and still have issues please show your updated code here.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (’).

---

<div class="post-metadata">

**Author:** ![PouringReyyyn](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@PouringReyyyn](https://forum.freecodecamp.org/u/PouringReyyyn)\
**Post date:** [January 24, 2022, 12:29am UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/6 "2022-01-24T00:29:39Z")

</div>

I already posted this problem once, and I redo it. The problem is still the same. It said that I should not change the inner text of “Indoor” and "Loving label. What should I do? I’m so confused.

```
  **Your code so far**

```

```auto

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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="https://www.freecatphotoapp.com/submit-cat-photo">
  <label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor" value="indoor" checked> Indoor</label>
  <label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label><br>
  <label for="loving"><input id="loving" type="checkbox" name="personality" value="loving" checked> Loving</label>
  <label for="lazy"><input id="lazy" type="checkbox" name="personality" value="lazy"> Lazy</label>
  <label for="energetic"><input id="energetic" 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/74.0.3729.131 Safari/537.36`

**Challenge:** Check Radio Buttons and Checkboxes by Default

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/check-radio-buttons-and-checkboxes-by-default)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![bbsmooth](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bbsmooth/32/203556_2.png) [@bbsmooth](https://forum.freecodecamp.org/u/bbsmooth)\
**Post date:** [January 24, 2022, 12:36am UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/7 "2022-01-24T00:36:37Z")

</div>

The code you pasted above passes for me, so you are doing it correctly. This is probably a browser specific issue. I’d just move on to the next challenge.

---

<div class="post-metadata">

**Author:** ![aaditya.sharma.2k20](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aaditya.sharma.2k20/32/184422_2.png) [@aaditya.sharma.2k20](https://forum.freecodecamp.org/u/aaditya.sharma.2k20)\
**Post date:** [January 24, 2022, 12:41am UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/8 "2022-01-24T00:41:59Z")

</div>

If you have a browser like Microsoft edge, try pasting the link there and pasting your code because your code is fine and should work. It is probably a browser issue.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [July 25, 2022, 12:30pm UTC](https://forum.freecodecamp.org/t/what-is-the-correct-answer-for-input-checked-html/493843/9 "2022-07-25T12:30:25Z")

</div>

Closed on July 25, 2022, 12:30pm UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
