@vanzasetia
Posted
Hi, Bazthos! π
Well done on this challenge! Your solution looks great! π It's nice that you have a hidden h1
on this site (if this is a real website the h1
would exist somewhere else on the page).
Regarding the RegEx for the email, I recommend searching the RegEx on the internet, and then once you find the one that almost works for you (it's hard to find to exact or "perfect" RegEx right away) then try improving the existing RegEx. I suggest using Regexr to help you understand what the RegEx is doing and at the same time learn RegEx and improve it as best as you can. This way, you ended up learning RegEx and possibly creating your own RegEx.
Now, some suggestions from me.
input
withtype="submit"
is a browser legacy. So, my recommendation is to usebutton
withtype="submit"
instead. Also, use CSS to uppercase the text. Uppercased text in HTML would more likely be spelled by screen readers.- Every
input
needs alabel
element. So, I recommend having asr-only
label or even better (in my opinion) is to make thelabel
as a placeholder (you can read this article by CSS Tricks about Form Validation with pure HTML and CSS).
Keep up the good work! π
Marked as helpful