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

Ahmed Medhat
Ahmed Medhat
5,897 Points

Set that text input to contain "Hello World".

Nick didn't discuss the value attribute of the text field

4 Answers

Calvin Nix
Calvin Nix
43,828 Points

Hello 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
Kern Tallett
10,012 Points

What lesson/video are you querying?

Ahmed Medhat
Ahmed Medhat
5,897 Points

it is the final quiz in HTML course

Kate Couch
Kate Couch
6,865 Points

Does 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
Ahmed Medhat
5,897 Points

Thanks 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.