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 Form Basics Create a Submit Button

am stuck here question 4out of 5 in html.i don't know what to do now.please help

<button type="submit comment">

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Forms</title>
  </head>
  <body>
   <form action="index.html" method="post">
     <input type="text" id="name" name="user_name">
     <textarea id="comment" name="user_comment">
       <button type="Submit Comment"
     </button></textarea>

    </form>
  </body>
</html>

thnx guys got it

thnx guys got it

3 Answers

Laurie Gray
Laurie Gray
23,119 Points

There is a missing '>' at the end of the button type declaration -

Line 11 "Submit Comment">

Niclas Valentiner
Niclas Valentiner
8,947 Points

Surprisingly easy to spot with the Markdown code styling.

Have to close those tags so they don't continue thinking of properties until the next tag.

Laurie Gray
Laurie Gray
23,119 Points

Keep up the good work :)

You need to have the button tag outside the textarea as I see. The button should be child of the form element