Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Form validation with Constraint Validation API; CSS error animation

@JulioCinquina

Desktop design screenshot for the Base Apparel coming soon page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi, everyone! 👋🏻

This is my first solution with JavaScript!

For form validation, I used the Constraint Validation API, and a CSS animation plays if the user tries to submit invalid data.

I learned that it's best to place error messages above input fields and that the built-in form validation in the browser can present some user experience and accessibility issues (read more about it in the README).

I couldn't find a way to have the "Base Apparel" logo always be aligned with the "We're coming soon" heading in every desktop screen size — at least without significant changes to the markup. Do you have any advice on how to improve this?

I also found that making good HTML forms is a vast subject, and I look forward to learning more about this in future challenges.

Any feedback, comments and suggestions are very welcome and appreciated. Thank you!

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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