It's very likely that…

posted on

…if you're putting the word “label” in the classname, you want to use a <label> element.

<div class="form-item__label">
  Username
</div>
<input type="text">

More accessible alternative:

<label for="username" class="form-item__label">
  Username
</label>
<input id="username" type="text" autocomplete="username">

Explanation

The <label> element provides a form field with a visual and a semantic label.

8