
Design comparison
Please log in to post a comment
Log in with GitHubCommunity feedback
- @rukhulkirom
Greetings Akram 👋👋
I have some suggestions about your code that might interest you.
-
Use the <button> element for buttons instead of <input type="submit">. This is more semantic and makes it easier to access :
<button type="submit" class="submit">Subscribe to monthly newsletter</button>
-
Added for="email" so that the label is connected to the input.
<label for="email" class="email-label">Email address</label> <input id="email" type="email" class="email" name="email" placeholder="email@company.com">
Marked as helpful -
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord