0

Sorry if this is a stupid question but I have used bootstrap for a school project and got this as a mistake so I would like to understand what is the error. It's about the use of forms. In the w3c html documentation there is a use of name attribute:

<form>
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname">
</form>

While in the bootstrap documentation, there isn't

<form>
  <div class="row">
    <div class="col">
      <input type="text" class="form-control" placeholder="First name">
    </div>
    <div class="col">
      <input type="text" class="form-control" placeholder="Last name">
    </div>
  </div>
</form>

Do I have to add those attribute myself or should it be use as is with bootstrap ?

Tanuki
  • 183
  • 4
  • 11

0 Answers0