On Mon, 10 May 2021 14:38:01 GMT, Pavel Rappo <pra...@openjdk.org> wrote:

> What was that label's intended effect? I'm looking at the API documentation 
> for JDK 16 and that of the mainline and cannot seem to spot any visual 
> difference.

There isn't a visual difference. The purpose of associating a label with an 
input is mostly to improve accessibility and user experience, e.g.:

 - A screen reader can read the label when the input field gets the focus.
 - Clicking on the label puts the focus on the input field.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3949

Reply via email to