Previous technique
Next technique

Input support

WCAG 2.2
A
#labels#inputs
<div class="form-group">
	<label for="password">
		Password
		<span class="required" aria-hidden="true">*</span>
		<span class="sr-only">required</span>
	</label>
	<input
		type="password"
		id="password"
		name="password"
		autocomplete="new-password"
		aria-describedby="desc_pw"
	/>
	<p class="aside" id="desc_pw">Your password needs to have at least eight characters.</p>
</div>
Source of this technique  Opens in a new window

Learn more about the related success criteria: