Skip to main content
CSS-Tricks
  • Articles
  • Videos
  • Almanac
  • Newsletter
  • Guides
  • DigitalOcean
  • DO Community
Search

Articles Tagged
form validation

12 Articles
{
,

}
Direct link to the article Detecting Specific Text Input with HTML and CSS
:not :placeholder-shown :valid form validation forms

Detecting Specific Text Input with HTML and CSS

Direct Link

Louis Lazaris breaks down some bonafide CSS trickery from Jane. The Pen shows off interactivity where:

  1. You have to press a special combination of keys on a keyboard.
  2. Then type a secret password.

From there, a special message pops …

Avatar of Chris Coyier
Shared by Chris Coyier on Nov 9, 2021
Direct link to the article Lightweight Form Validation with Alpine.js and Iodine.js
alpine.js form validation iodine

Lightweight Form Validation with Alpine.js and Iodine.js

Many users these days expect instant feedback in form validation. How do you achieve this level of interactivity when you’re building a small static site or a server-rendered Rails or Laravel app? Alpine.js and Iodine.js are two minimal JavaScript …

Avatar of Hugh Haworth
Hugh Haworth on Jan 20, 2021 (Updated on Oct 24, 2021)
Direct link to the article Happier HTML5 form validation in Vue
form validation vue

Happier HTML5 form validation in Vue

It’s kind of neat that we can do input:invalid {} in CSS to style an input when it’s in an invalid state. Yet, used exactly like that, the UX is pretty bad. Say you have <input type="text" required>. That’s …

Avatar of Chris Coyier
Chris Coyier on Dec 3, 2020
Direct link to the article Form Validation in Under an Hour with Vuelidate
form validation forms passwords vue forms vuelidate

Form Validation in Under an Hour with Vuelidate

Form validation has a reputation for being tricky to implement. In this tutorial, we’ll break things down to alleviate some of that pain. Creating nice abstractions for forms is something that Vue.js excels at and Vuelidate is personally my favorite …

Avatar of Sarah Drasner
Sarah Drasner on Apr 2, 2019
Direct link to the article HTML for Numeric Zip Codes
form validation forms zip

HTML for Numeric Zip Codes

I just overheard this discussion on Twitter, kicked off by Dave.

Me (coding a form): <input id="zip" type="number">
Tiny Devil (appears on shoulder): Yaaas! I love the optimism, ship it!
Me: Wait, why are you here? Is this going

…
Avatar of Chris Coyier
Chris Coyier on Oct 15, 2018 (Updated on Oct 16, 2018)
form validation

Happier HTML5 Form Validation

Direct Link

HTML has given us loads of form validation stuff in the last few years. Dave Rupert puts a point on the UX problems with it:

If you’ve ever experimented with HTML5 Form Validation, you’ve probably been disappointed. The out-of-box experience

…
Avatar of Chris Coyier
Shared by Chris Coyier on Nov 20, 2017
form validation forms ux

Why Use a Third-Party Form Validation Library?

We’ve just wrapped up a great series of posts from Chris Ferdinandi on modern form validation. It starts here. These days, browsers have quite a few built-in tools for handling form validation including HTML attributes that can do quite …

Avatar of Chris Coyier
Chris Coyier on Jul 3, 2017
form validation forms ux

Form Validation – Part 4: Validating the MailChimp Subscribe Form

Over the last few articles in this series, we’ve learned how to use a handful of input types and validation attributes to natively validate forms.

We’ve learned how to use the Constraint Validation API to enhance the native browser validation …

Avatar of Chris Ferdinandi
Chris Ferdinandi on Jun 29, 2017 (Updated on Jul 23, 2021)
form validation forms ux

Form Validation Part 3: A Validity State API Polyfill

In the last article in this series, we built a lightweight script (6kb, 2.7kb minified) using the Validity State API to enhance the native form validation experience. It works in all modern browsers and provides support IE support back to …

Avatar of Chris Ferdinandi
Chris Ferdinandi on Jun 28, 2017 (Updated on Mar 31, 2020)
form validation forms ux

Form Validation Part 2: The Constraint Validation API (JavaScript)

In my last article, I showed you how to use native browser form validation through a combination of semantic input types (for example, <input type="email"/>) and validation attributes (such as required and pattern).

While incredibly easy and super …

Avatar of Chris Ferdinandi
Chris Ferdinandi on Jun 27, 2017 (Updated on Jun 29, 2017)
form validation forms ux

Form Validation Part 1: Constraint Validation in HTML

Most JavaScript form validation libraries are large, and often require other libraries like jQuery. For example, MailChimp’s embeddable form includes a 140kb validation file (minified). It includes the entire jQuery library, a third-party form validation plugin, and some custom MailChimp …

Avatar of Chris Ferdinandi
Chris Ferdinandi on Jun 26, 2017 (Updated on Jun 29, 2017)
  • 1
  • 2
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • DigitalOcean
  • DigitalOcean Community
  • About DigitalOcean
  • Legal
  • Agency Coaching
  • Free Credit Offer
CSS-Tricks
  • Email
  • Guest Writing
  • Book
  • Advertising
Follow
  • Mastodon
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top