The label element is used for visually prominent labels. They are often helpful for building form interfaces. The label element is simple: it applies a medium weight to its content.
Intrusiveness — Labels are intended to be seen. For a less intrusive label that can fall into the background, use a supra.
Labels have full tone and priority support. They will automatically look appropriate in most contexts.
Use with label (
<label>) elements. Using the
.label element on
<label> tags will help screenreaders and other assistive technologies better represent your content.
Don't use color to communicate. Instead, use color to support information you communicate through text. When this isn't possible, be sure to use a
Be mindful of contrast. What looks good to you may not be readable for others. Text contrast is a good thing!
Support all navigation modes. Some people will interact with your interface using assitive technologies and/or a keyboard. Build your interface with these different modes in mind (for example, by setting the `tab-index` attribute on all interactive elements that aren't interactive by default).