how to number validation using html 5
read che error message in the test suite, it may help you get it
1 Like
10. For the name, email, and number input fields inside the form I can see corresponding labels that describe the purpose of each field with the following ids: id=âname-labelâ, id=âemail-labelâ, and id=ânumber-labelâ.
not understood could anybody explain in simple way please.
@gunjan15697, 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.
Youâve only read the first line. The failing message says
For the name, email, and number input fields inside the form I can see corresponding labels that describe the purpose of each field with the following ids: id="name-label", id="email-label", and id="number-label".
#name-label should be a <label> element : expected 'LABLE' to equal 'LABEL'
AssertionError: #name-label should be a <label> element : expected 'LABLE' to equal 'LABEL'
On a side note,
-
</input>
is not valid HTML5. Theinput
element is self closing - All your styling should be external. Do not use in-line styling. Everything between the
style
tags should be in codepenâs CSS editor. Get rid of thestyle
tags. - Codepen provides the boilerplate for you. It only expects the code youâd put within the
body
element in the HTML editor. (No need to include thebody
tags). For anything you want to add to the<head>
element click on the âSettingsâ button, then HTML and add it into the âStuff for <head>â box.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.