Reference to display none with label and aria-labelledby

From Level Access Web Labs
Jump to navigation Jump to search

<html>

 <style>
    .hide {
       display:none;
    }
 </style>

<label class="hide" for="fn">First name</label>

 <input type="text" id="fn" />

<label id="lnl" class="hide" >Last name</label>

 <input type="text" aria-labelledby="lnl" id="ln" />

<html>