Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

The element “label” must not appear as a descendant of the “button” element.

A label element is not allowed as a descendant of a button element.

The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element’s labeled control, either using the for attribute, or by putting the form control inside the label element itself.

Learn more:

Related W3C validator issues