Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Form validation with Constraint Validation API; CSS error animation

Julio Cinquina•270
@JulioCinquina
A solution to the Base Apparel coming soon page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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!

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Julio Cinquina's solution.

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub