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 trialSAUNIYA RANDERI
1,202 PointsWhat does it mean by "type?"
I don't understand what the question means by "type."
<body>
<h1>First Day of School</h1>
<form>
<div class="favorite_stuff">
<h4>Favorite Foods?</h4>
<input name="gummies[purple]">
<input name="pretzels[crunchy]">
<input name="cookies[soft]">
<input name="carrots[orange]">
</div class="favorite_stuff">
<div class="favorite_stuff">
<h4>Favorite Animals?</h4>
<input name="dog[brown]">
<input name="cat[small]">
<input name="pig[heavy]">
<input name="cow[white]">
</div class="favorite_stuff">
</form>
</body>
1 Answer
Christopher McRoy
17,295 PointsHTML form <input> tags are meant to collect information from the users. The Type determines how the form collects the information. The default input is "text", which creates a text box where a user can type in their values in their own words/numbers, but other input types can be submit and reset buttons, checkboxes, emails, passwords, and more.
As far as answering the question in the challenge, it's asking you to include: type="text" inside each input tag. For example:
<input name="gummies[purple]" type="text">
Another tip: the class attribute doesn't need to be included in the end </div> tags, only in both of the start <div> tags. For example:
<div class="favorite_stuff">
<h4>Favorite Foods?</h4>
<input name="gummies[purple]">
</div>
Hope this helps!