Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Add a submit button to your form - HTML deep dives

Hi, i´m in the last code in the code challenge of the HTML deep dives, but i´m stuck. They want me to: "Add a submit button to your form"

Here is my code:

<!DOCTYPE html> <html> <head> <title>HTML Mastery Challenge</title> </head> <body> <h1>HTML Mastery Challenge</h1>

<!-- Write your code below -->
<div>Test
  <h2>Shopping List</h2>
  <ol>
  <li>Item1</li>
  <li>Item2</li>
  <li>Item3</li>
  </ol>
  <p> 
    <strong>Text in it</strong>
  </p>
</div>
<form>
<input type="text" name="Hello World" value="Hello World"><br>
  <input type="button" name="input" value="submit">

</form>

</body> </html>

What is wrong? I guess it must be really simple, but i just don´t get it. Thx for your answers.

5 Answers

Try to change the button type to submit.

THANK YOUUUUUUUUUUUUUU

Thx Sayed, that did it. I tried EVERYTHING ELSE before :D Greatings from Germany

Glad it worked. :)

Greeting from Egypt :P

The thing though is that if you make a type = button it's treated as a button.

But a submit button is slightly different as it's considered as a special type of buttons and thus you should use type="submit"

it still doesnt work for me

<input type="submit" value="submit" />

worked fine for me.

Thanks for your explaination. The problem was, the button things were not in the video prior to the test.

P.S.: I will be in Egypt in 2 weeks :D