Last active
May 12, 2019 09:51
-
-
Save bartcis/12bd900dd8f03e56ad979d2ec196974a to your computer and use it in GitHub Desktop.
Example form field to validate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form__field"> | |
<input type="text" class="form__field__input" name="firstName" placeholder=" " pattern="[A-Za-z]{2,99}" required> | |
<label for="firstName" class="form__field__label">First Name</label> | |
<p class="form__field__error">Is your First Name correct?</p> | |
<div class="form__field__state-icon"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment