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 trialAnna-Marie Barendt
3,003 PointsSet text box to contain "hello world"--Do you want the text box to present with hello world visible in text box?
I guess I am having probs with the word contain. I tried to set it as the defaultValue, but that didn't work.
2 Answers
Peter Ramsing
16,814 PointsI went through the challenge and it looks like it's trying to have you define the value of the input. Try something like:
<input type="text" value="Hello World">
The value="Hello World"
sets the value. Hopefully that helps.
Anna-Marie Barendt
3,003 PointsHi Peter, Yes, they wanted "value" and I kept trying to put in "defaultValue"--for some reason that made more sense to me . . . but it is not what they wanted. I tend to overthink thinks sometimes, and actually looked up the W3C info on input--that is where I found "defaultValue". Thank you for you quick response, Anna-Marie
Peter Ramsing
16,814 PointsSometimes overthinking can get you in trouble when it's a program looking over your work. I know I've scratched my head many times looking at a code challenge knowing that it should pass when it didn't. You're not alone, Anna-Marie. You're not alone.