Responsive html, css and js Interactive card details

Solution retrospective
feedback please
Please log in to post a comment
Log in with GitHubCommunity feedback
- @aja26
hey great project!
I noticed the form doesn't complete and i just wanted to point out something which helped me which was using regex patterns on as html attributes. Here is an example for number validation, pattern="[0-9\s]+$". Please see example below where I also show maxlength which is another type of simple validation you can use.
<input id="card-number" pattern="[0-9\s]+$" type="text" maxlength="16" placeholder="e.g. 1234 5678 9123 0000">More Info: https://www.w3schools.com/tags/att_input_pattern.asp
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