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

Patrick Laube
Patrick Laube
1,299 Points

Why is it not correct???

I copy pasted...Why is it not correct???

index.html
<body>
  <h1>First Day of School</h1>

  <form>

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

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

  </form>

</body>

1 Answer

Hey.

Instead of adding classes to your existing divs, you have created new ones.

Remove those and put the classes in the existing divs.

Happy coding

Paul