Skip to content

Instantly share code, notes, and snippets.

@bartcis
Last active May 12, 2019 09:51
Show Gist options
  • Save bartcis/12bd900dd8f03e56ad979d2ec196974a to your computer and use it in GitHub Desktop.
Save bartcis/12bd900dd8f03e56ad979d2ec196974a to your computer and use it in GitHub Desktop.
Example form field to validate
<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