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
Ilan ben yaakov
8,622 Pointstext input
hi, i was asked to add text input to my form. I did this:
<p> <textarea name="input" rows="30" cols="34">
</textarea>
</p>
it says: "Bummer! Be sure to check your inputs!"
any idea? Thanks Ilan
4 Answers
Adam Sackfield
Courses Plus Student 19,663 PointsA text input would look like this.
<input type="text" name="name" placeholder="Enter Name...">
A textarea would look like
<textarea></textarea>
Hope this helps See the W3C site for specific properties
James Barnett
39,199 PointsThe operative phrase here is text input, which should tip you off to using an <input> element. The <textarea> element on the other hand is a multi-line text field.
Ilan ben yaakov
8,622 PointsGreat! It works! Thanks!
Adam Sackfield
Courses Plus Student 19,663 PointsNo problem click best answer and it will close off the question.
Ilan ben yaakov
8,622 Pointsthanks!