DEV Community

Discussion on: Negative Impacts of Withholding Form Labels

Collapse
 
philnash profile image
Phil Nash

This is a really interesting question. Using a <label> with an <input> is not really an accessibility issue, it's just how it is supposed to work. That doesn't mean that will make developers use it that way, and for years accessibility proponents have been trying to convince developers to link up the for and id attributes so that they were more than just related by proximity.

However, in 1999 there was no placeholder attribute so people couldn't easily, and wrongly, replace labels with placeholder.

There is no doubt that <label>s should be used and associated with their relevant <input>s and I'm just glad there are articles like this that try to teach people why.