@CrypticMangoSubmitted over 1 year ago
I was not sure how to complete the full email validation so I did what I could. If anyone has some tips for me that would be greatly appreciated.
I was not sure how to complete the full email validation so I did what I could. If anyone has some tips for me that would be greatly appreciated.
Hi Lisa👋, I think I have some suggestions that might help :)
Maybe the best way to validate a form is by using Regular expressions, and using match()
method which returns true if the email entered by the user is valid, it will be a good idea to use it with an if statement.
input.value
will give us user's input, we can store it in a variable to validate or use it anywhere else.
The <picture>
element in HTML will be very useful when you need responsive images that appears in specific screen size, I strongly recommend that you read this article Responsive Images.
Great Job, and happy coding ! ☕