@Chanda-Abdul
Posted
Absolute
/relative
positioning is just forcss
. It may be helpful with your section/curve border positioning. Take a look at this article
https://www.freecodecamp.org/news/css-positioning-position-absolute-and-relative/
For the JavaScript email input box
- I would add a placeholder to the input,
[email protected]
onClick
oronSubmit
of the Subscribe button, capture the user input and run a function to validate the email input. I would probably use some kind of regex for this. Research "JavaScript email validation regex"- if the validation function returns
true
display some kind of confirmation to the user that their email was captured. This can be analert
or maybe adiv
underneath the input box. If the validation function returnsfalse
, ask the user to input a valid email
https://stackoverflow.com/questions/46155/whats-the-best-way-to-validate-an-email-address-in-javascript
Marked as helpful
@Duyen-codes
Posted
@Chanda-Abdul Hey, thanks you very much for your help! I really appreciate it. And keep up the great work! I've learned a lot from you and your solutions!