Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Forms HTML Mastery

Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

Task 7 is no longer passing - what is wrong with my code?

I'm trying to add a button to my code after I passed the 7th step of the challenge but after I add it, I can't get pass the 8th step. This is my code. Thx.

 <div>
      <h2>Shopping List</h2>

      <ol>
        <li></li>
         <li></li>
         <li></li>
      </ol>

      <p>This <strong>is</strong> some code.</p>

      <form>
       <input type="text" value="Hello world">
       <input type="button" value="Submit">

      </form>
    </div>

3 Answers

andren
andren
28,508 Points

The issue is that task 7 specifically wants the value to be set to "Hello World" (With both words starting with a capital letter). Since "World" is not capitalized in your code it does not accept it. Code challenges tend to be very picky about capitalization.

Your code for task 8 is not quite correct either though. There is a input type called submit which is explicitly designed to create a submit button which is what the task is looking for.

Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

I literally realized this few second ago. The capital W was to blame. I already corrected the type="submit" bit. Thank you.

Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

To add a text input with the "Hello world" value.

Jack Cummins
Jack Cummins
17,417 Points
<input type="text" name="Hello World" value="Hello World">

/**Instead of**/

<input type="text" value="Hello world">
Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

No. I already tried that.

This is the complete code after I changed it based on what others said on the forum (I should use type="submit" and not type="button"):

<form>
       <input type="text" name="Hello world" value="Hello world">
       <input type="submit" name="submit" value="submit">

      </form>

Still the same error: "Oops! It looks like Task 7 is no longer passing.". Very frustrating.