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 Textarea

For the 2nd question, i believe this is how you create a text input however it keeps telling me i am wrong.

I believe this is how you create a text input however it keeps telling me i am wrong. What am i missing?

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Forms</title>
  </head>
  <body>
    <table>
      <form action='index.html' method='post'>
        <input type='text' id='name' name='user_name'>



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

That should be correct. I've even tested it by copy pasting your exact code (all of it) into the challenge, and I passed.

Thanks for the clarification, I really appreciate the help. Any idea how I can skip the question and move on with the course?

1 Answer

Hi Arsal Abdullah,

There is nothing incorrect about the way youโ€™ve created your text input. The issue is the table element that youโ€™ve created.

Including a table element was not a part of the first part of the challenge. And as such, itโ€™s throwing the testing of the text input off. Once you remove the table tags, youโ€™ll find that your code passes.