Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLaccessible-name algorithmSingle-choice MCQ

The accessible name computation algorithm (accname) has a strict precedence order for computing an element's name. For an <input type="text"> that has aria-labelledby, aria-label, an associated <label>, a title, and a placeholder all present, which source wins and why?

<label for="f">Native label</label> <input id="f" type="text" aria-labelledby="a b" aria-label="aria label" title="the title" placeholder="type here"> <span id="a">First</span><span id="b">Second</span>