html - Does the aria-labelledby attribute require a label tag? -


on form, can aria-labelledby attribute work on own or require label tag?

example: work this

aria-labelledby="name" 

read browser "name"?

"the aria-labelledby attribute used indicate ids of elements labels object." (mdn).

it not contain text label.

so no, doesn't work on own.

it doesn't require <label> element, if <label> correct html element context should use one. (start correct, semantic html, build aria on top of it).


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -