Hi I would appreciate if I could have an assessment of my work on Test your skills: Form validation.
My work
task 1
I tried two ways to validate phone number.
-
<input type="tel">
: I could check the maxlength easily but users can submit characters (especially if they are not using mobile device, which shows number keyboard), so I thought this was not the best way. -
<input type="number">
+ JavaScript : I could check the maxlength and make sure numbers will be submitted.
task 2
task 3
testpage
Thank you in advance!