#name-label ERROR survey form [solved]

I’ve been having the error while forking the the CodePen pen of the Survey Form.
This is the part of the code that corresponds with that:

<div class='form-group'>
            <p>Name</p>
            <label for='name' id='name-label'>
              <input type='text' name='name' id='name' class='form-control' placeholder='Tell me your name' required>
            </label>
          </div>

          <div class='form-group'>
            <p>E-mail</p>
            <label for='email' id='email-label'>
              <input type='email' name='email' id='email' class='form-control' placeholder='Tell me your e-mail' minlength='8' maxlength='60' required>
            </label>
          </div>

          <div class='form-group'>
            <p>Age</p>
            <label for='age' id='number-label'>
              <input type='number' name='age' id='number' class='form-control' placeholder='Tell me your Age' min='9' max='120' required>
            </label>
          </div>
1 Like

Hi @cristian158 !

Welcome to the forum!

Where are the form tags?

1 Like

I put the initial form tag just before the code I show.

Thanks for the fast reaction! :smiley:

<p>Name</p> <— these should not be p elements, you should write that text inside the label.

1 Like

Thanks for the hint, I rearrenged the syntax and now it doesn’t give me error!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.