Hi, I’m having a hard time adding the HTML5 validation to my code, particularly for the email, name and number. What does this HTML5 validation entail other than adding the “required” in the ? How do you require a field to be text-specific vs. number-specific?
Here’s my CodePen: https://codepen.io/bougieblub/pen/GRWPaPo
Please disregard my lack of CSS - haven’t added that portion yet.
When a test fails, click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.
The failing test message will answer this question.
Hope that helps.
EDIT: Remember, an
id must be unique within the document. You have duplicate
Hi @Roma ,
Thank you for this - I was confused with which ids I should be changing, but your note on me having duplicate ids was helpful.
Many thanks again!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.