Melvin Aguilar ๐ง๐ปโ๐ปโข 61,220
@MelvinAguilar
Posted
Hello there ๐. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- Your script
<s cript src="./styles.js"></s cript>
references thestyles.js
file in the same folder as the HTML. However, your JavaScript file is located in the/design/
folder as/design/styles.js
. Therefore, the JavaScript file is never called, and every time the button is clicked, the page reloads.
- You should consider validating the content of the input
<input type="email" id="email" placeholder="[email protected]">
to ensure it is always a valid email address. If a user enters a number, it may not be a valid email, and it could lead to unexpected behavior. For proper email validation, you may want to explore tutorials on YouTube or other resources.
I hope you find it useful! ๐
Happy coding!
0