TLDR Web Dev · ARTICLES & TUTORIALS
HTML FORM VALIDATION IS HEAVILY UNDERUSED
Summary from the TLDR Web Dev newsletter
HTML forms have powerful validation mechanisms, but they aren't used much because the setCustomValidity API is cumbersome to use. A better way to make it easier to use is to use a declarative custom-validity attribute, which lets developers define input validations within their components.