4 Ways CSS :Has() Can Make Your HTML Forms Even Better

There’s been a lot of hype lately around the CSS :has() pseudo-class. And rightly so! It’s basically the “parent selector” we’ve been asking for for years. Today I want to focus on ways we can use :has() to make HTML forms even better.

Preface

In this article I’ll be working with custom form controls that look like this:

CategoriesUncategorized