<formmethod="POST"autocomplete="off"action="?/register"class="form"> <divclass="wrapper"> <divclass="form-field-wrapper"> <labelfor="name"class="sr-only">name</label> <divclass="form-input-wrapper"> <inputid="name"type="text"placeholder="Name"name="name"class="form-input"value=""> </div> <smallclass="form-helper">Type your name here</small> </div> <divclass="form-field-wrapper s-4UUnfFXl22x1"> <labelfor="email"class="form-label">Your mail address</label> <divclass="form-input-wrapper"> <inputid="email"type="mail"placeholder="E-Mail"name="email"class="form-input"value=""> </div> <smallclass="form-helper">Type your mail here</small> </div> <divclass="form-field-wrapper"> <labelfor="password"class="form-label">Your password</label> <divclass="form-input-wrapper"> <inputid="password"type="password"placeholder="Password"name="password"class="form-input"value=""> </div> <smallclass="form-helper">Very secret password</small> </div> <divclass="button-wrapper"><buttontype="submit"class="form-button">Save</button> </div> </div></form>
What happens if you don't set a label? Topform sets this as sr-only. This class is already included in topform as CSS.
.sr-only means "this content is visible only to screen readers". If you are using the site with working eyes, you don't apply. Try using the site blindfolded which obviously requires using some kind of aids to make it possible; the .sr-only content is meant to aid users without vision. This is called accessibility and within EU it's no longer optional but required by a directive. More information about this topic.