vendredi 2 octobre 2020

What do I do if I don't have a element to go along with a element?

I've read that it's an accessibility best practice to always include a <label> element along with an <input type="email"> element, but what if I don't have a label element to include with my <input> element?

I mean, currently, I'm designing a site that doesn't really have any text to put into a <label> element (so I'm not creating one at all) but I don't really know what to do since my HTML is generating an accessibility error when I run it through a web accessibility checker.

Do have to make up some text to throw into a label element to include it just to make my HTML accessible? Or is there some other way to make a lone <input type="email"> element accessible?




Aucun commentaire:

Enregistrer un commentaire