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

General Discussion

Question about the Forms quiz at the end of the HTML Deep Dive

The question is number 7 of 8, asking me to "Set the text input to contain "Hello World". Here is my code:

<!-- <!-- Write your code below --> <div> <h2>Shopping List</h2> <ol> <li></li> <li></li> <li></li> </ol> </div> <p>Sfdasdfasdf <strong>and</strong> stuff</p> <form> <input type="text"> </form> </body> </html> -->

Can someone help me figure out what I'm doing wrong?

Thanks!

2 Answers

The code didn't past when I did it. Let me try again:

<!-- Write your code below -->
div>
  <h2>Shopping List</h2>
  <ol>
    <li></li>
    <li></li>
    <li></li>
  </ol>
</div>
<p>Sfdasdfasdf <strong>and</strong> stuff</p>
<form>
  <input type="text">
</form>

</body> </html

The missing bracket on the first div was deleted so that the code would show up, it isn't like that in my exercise.

What you want to do is change the value of the input to contain Hello World!, there is an input property that you can use to set that. The MDN has a list of properties for the input element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input

Nevermind, I figured it out. Thanks!