JavaScript Treehouse Club - MASH MASH - HTML Forms, Divs, and Inputs

paulapark
paulapark
1,350 Points

I don't know where to put a div class

I don't get this question in the class exercise.

1 Answer

Linas Mackonis
Linas Mackonis
6,720 Points

This is how:

<body>
  <h1>First Day of School</h1>

  <form>

    <div class="favorite_stuff">
      <h4>Favorite Foods?</h4>
      <input name="food[]">
      <input name="food[]">
      <input name="food[]">
      <input name="food[]">
    </div>

    <div class="favorite_stuff">
      <h4>Favorite Animals?</h4>
      <input name="animal[]">
      <input name="animal[]">
      <input name="animal[]">
      <input name="animal[]">
    </div>

  </form>

</body>