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 HTML Forms HTML Mastery

Hello, Why my form don't work? I add submit in form,and near form. Regards Radek

Form

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

    <!-- Write your code below -->
   <div>
  <h2>Shopping List</h2>
  <ol>
    <li><p><strong>BUBUBUB</strong>babaabab</p></li>
    <li></li>
    <li></li>
  </ol>
    </div>
<form>
  <input type="text" value="Hello World" />
    <button type="submit" value="Submit">Submit</button>
    </form>

  </body>
</html>

4 Answers

Adrian Adr
Adrian Adr
9,268 Points

I don't follow your question, how you want your form to work? If you want your form to work you must add some server-side code like php to make your form work and send a message or some text.

Adrian Adr
Adrian Adr
9,268 Points

If you reffer to your code challange your code must be:

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

This is part of your quiz. Task tell me "insert submit button" and send error if i write <button type="submit"... But send pass if i write <input type="submit"... Why?

send error if i write "button type..." but pass if i write "input type..."

Adrian Adr
Adrian Adr
9,268 Points

Of course, because the task is about input types. :) that was what you've learned in the course.

Hi Radek,

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

    <!-- Write your code below -->
  <div>
    <h2>Shopping List</h2>  
    <ol>
      <li></li>
      <li></li>
      <li></li>
    </ol>
    <p><strong>Text</strong></p>
  </div>
  <form action="#" method="post" name="my_form">
    <input type="text" value="Hello World">
    <input type="submit" value="Submit">
    </form>
  </body>
</html>