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

Marshall Bell
PLUS
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,547 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>