Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Forms HTML Mastery

Marshall Bell
Marshall Bell
Courses Plus Student 3,383 Points

Not sure what the question is asking in HTML forms challenge, question #7.

It's asking to "Set the text input to contain "Hello world". Don't recall seeing anything like this in the videos. Have all other tasks completed.

2 Answers

Alex Heil
Alex Heil
53,534 Points

hey marshall, the input element is a self-closing tag - so something like /input doesn't exist which also means you can't put text in between.

but it can use some attributes. in fact at step 6 (that you already passed) you added type=text to it which is one of the attributes. now to move on and add the "hello world" we can add another attribute to the input element. this time a value attribute.

after doing so the line should look like this at the end:

<input type="text" value="Hello World">

hope that helps and have a nice day ;)

Alexander Dernild
Alexander Dernild
1,821 Points

Try this

<input type="text"> Hello world </input>