Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
forms

74 Articles
{
,

}
Direct link to the article Creating an Editable Textarea That Supports Syntax-Highlighted Code
forms pre syntax textarea

Creating an Editable Textarea That Supports Syntax-Highlighted Code

When I was working on a project that needed an editor component for source code, I really wanted a way to have that editor highlight the syntax that is typed. There are projects like this, like CodeMirror, Ace, …

Avatar of Oliver Geer
Oliver Geer on Apr 16, 2021 (Updated on Nov 16, 2021)
Direct link to the article HTML Inputs and Labels: A Love Story
accessibility forms inputs labels semantics

HTML Inputs and Labels: A Love Story

Most inputs have something in common — they are happiest with a companion label! And the happiness doesn’t stop there. Forms with proper inputs and labels are much easier for people to use and that makes people happy too.…

Avatar of Amber Wilson
Amber Wilson on Mar 30, 2021 (Updated on Apr 2, 2021)
Direct link to the article Creating Custom Form Controls with ElementInternals
custom elements ElementInternals forms

Creating Custom Form Controls with ElementInternals

Ever since the dawn of time, humanity has dreamed of having more control over form elements. OK, I might be overselling it a tiny bit, but creating or customizing form components has been a holy grail of front-end web development …

Avatar of Caleb Williams
Caleb Williams on Mar 24, 2021 (Updated on Jun 25, 2021)
Direct link to the article Make Your Own Tools
DevTools forms react

Make Your Own Tools

Spencer Miskoviak on the Wealthfront blog:

By creating custom DevTools specific to an app, they can operate at an even higher abstraction to handle things like user interactions, or debugging tracking events. While this requires building and maintaining the

…
Avatar of Chris Coyier
Chris Coyier on Jan 4, 2021
Direct link to the article “Yes or No?”
checkboxes forms radio buttons select

“Yes or No?”

Sara Soueidan digs into this HTML/UX situation. “Yes” or “no” is a boolean situation. A checkbox represents this: it’s either on or off (uh, mostly). But is a checkbox always the best UX? It depends, of course:

Use radio

…
Avatar of Chris Coyier
Chris Coyier on Dec 22, 2020
Direct link to the article How to Add Text in Borders Using Basic HTML Elements
border fieldset forms legend

How to Add Text in Borders Using Basic HTML Elements

Some HTML elements come with preset designs, like the inconveniently small squares of <input type="checkbox"> elements, the limited-color bars of <meter> elements, and the “something about them bothers me” arrows of the <details> elements. We can style them to match …

Avatar of Preethi
Preethi on Dec 1, 2020
Direct link to the article Form design
forms

Form design

A very digestable guide from Geri Reid on building forms. Not the code, but the design and UX principles that should guide the code.

Working on a design system for a bank has taught [me] a lot about forms. I’ve

…
Avatar of Chris Coyier
Chris Coyier on Sep 15, 2020
Direct link to the article Striking a Balance Between Native and Custom Select Elements
accessibility forms select

Striking a Balance Between Native and Custom Select Elements

Here’s the plan! We’re going to build a styled select element. Not just the outside, but the inside too. Total styling control. Plus we’re going to make it accessible. We’re not going to try to replicate everything that the …

Avatar of Sandrina Pereira
Sandrina Pereira on Jun 12, 2020 (Updated on Aug 13, 2020)
Direct link to the article Unprefixed `appearance `
appearance forms standards

Unprefixed `appearance `

It’s interesting how third-parties are sometimes super involved in pushing browser things forward. One big story there was how Bloomberg hired Igalia to implement CSS grid across the browsers.

Here’s another story of Bocoup doing that, this time for the …

Avatar of Chris Coyier
Chris Coyier on May 18, 2020 (Updated on May 19, 2020)
Direct link to the article Using Formik to Handle Forms in React
formik forms react

Using Formik to Handle Forms in React

There is no doubt that web forms play an integral role in our web site or applications. By default, they provide a useful set of elements and features — from legends and fieldsets to native validation and states — but …

Avatar of Adebiyi Adedotun
Adebiyi Adedotun on Apr 28, 2020
Direct link to the article Better Form Inputs for Better Mobile User Experiences
autocomplete forms inputmode inputs ux

Better Form Inputs for Better Mobile User Experiences

Here’s one simple, practical way to make apps perform better on mobile devices: always configure HTML input fields with the correct type, inputmode, and autocomplete attributes. While these three attributes are often discussed in isolation, they make the …

Avatar of Alex Holachek
Alex Holachek on Apr 17, 2020 (Updated on Apr 27, 2020)
  • Newer
  • 1
  • 2
  • 3
  • ...
  • 7
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways hosting
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Write for us!
  • Advertise with us
  • Contact us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • X
Back to Top