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 trialAhmed Medhat
5,897 PointsSet that text input to contain "Hello World".
Nick didn't discuss the value attribute of the text field
4 Answers
Calvin Nix
43,828 PointsHello Ahmed,
Similar to how you set the input type you will want to set the value of the input.
In your case the value will be equal to "Hello World"
.
SPOILER e.g.
<input type="text" value="Hello World">
Kern Tallett
10,012 PointsWhat lesson/video are you querying?
Ahmed Medhat
5,897 Pointsit is the final quiz in HTML course
Kate Couch
6,865 PointsDoes it denote whether he's asking for header or paragraph or something else?
It's important to note the video and what section you're in; he uses 'Hello World' quite a bit.
It could be as simple as...
<h1>Hello World</h1> or <p>Hello World</p>
Ahmed Medhat
5,897 PointsThanks Calvin, i already know the answer from previous experience. but what about people who are new to HTML, this is the point why i started this discussion.