Skip to main content

HTML Guide

Free site validation

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

Attribute “required” is only allowed when the input type is “checkbox”, “date”, “datetime-local”, “email”, “file”, “month”, “number”, “password”, “radio”, “search”, “tel”, “text”, “time”, “url”, or “week”.

The boolean required attribute can only be used with certain types of inputs. Check the input type is one of the allowed.

The required attribute, if present, indicates that the user must specify a value for the input before the owning form can be submitted.

Learn more:

Related W3C validator issues