Survey Form Validation Error

We probably should add a challenge showing the use of build-in validation for inputs (the type attribute).

But if you searched, which fCC does ask that you do, i.e. the Read-Search-Ask method, for HTML5 validation you would get some pretty good information on what is needed. And you can always ask for help on the forum as well.

An update to the test to be more explicit might also be nice.

Example of current message:

Email field should be HTML5 validated : expected 'text' to equal 'email'

A more explicit message might be something like this:

Email field should be HTML5 validated, missing type attribute value : expected 'text' to equal 'email'

1 Like