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

Articles Tagged
forms

71 Articles
{
,

}
Direct link to the article What’s New With Forms in 2022?
forms

What’s New With Forms in 2022?

Browsers are constantly adding new HTML, JavaScript and CSS features. Here are some useful additions to working with forms that you might have missed……

Avatar of Ollie Williams
Ollie Williams on Sep 8, 2022
Direct link to the article Zero Trickery Custom Radios and Checkboxes
checkboxes forms radio buttons

Zero Trickery Custom Radios and Checkboxes

I feel like half of all “custom-designed radio buttons and checkboxes” do two things:

  1. Make them bigger
  2. Colorize them
…
Avatar of Chris Coyier
Chris Coyier on Nov 17, 2021
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 enterkeyhint
forms semantics

enterkeyhint

I only just recently learned the enterkeyhint attribute on form inputs was a thing! It seems like kind of a big deal to me, as crafting HTML form markup is a decent slice of a front-end developer’s life, and this …

Avatar of Chris Coyier
Chris Coyier on Nov 5, 2021
Direct link to the article How to Create a Contact Form With Next.js and Netlify
forms netlify react

How to Create a Contact Form With Next.js and Netlify

We’re going to create a contact form with Next.js and Netlify that displays a confirmation screen and features enhanced spam detection.

Next.js is a powerful React framework for developing performant React applications that scale. By integrating a Next.js site with …

Avatar of Monica Powell
Monica Powell on Oct 21, 2021
Direct link to the article Building a Form in PHP Using DOMDocument
DOMDocument forms php

Building a Form in PHP Using DOMDocument

Learn how to build an HTML form in PHP using DOMDocument — a structured and expressive way to build logical markup.
Avatar of Jonathan Land
Jonathan Land on Sep 14, 2021
Direct link to the article Making Disabled Buttons More Inclusive
accessibility aria buttons forms

Making Disabled Buttons More Inclusive

Let’s talk about disabled buttons. Specifically, let’s get into why we use them and how we can do better than the traditional disabled attribute in HTML (e.g. <button disabled> ) to mark a button as disabled.

There are lots of …

Avatar of Sandrina Pereira
Sandrina Pereira on May 12, 2021 (Updated on May 24, 2022)
Direct link to the article 16px or Larger Text Prevents iOS Form Zoom
forms ios

16px or Larger Text Prevents iOS Form Zoom

This was a great “Today I Learned” for me from Josh W. Comeau. If the font-size of an <input> is 16px or larger, Safari on iOS will focus into the input normally. But as soon as the font-size is …

Avatar of Chris Coyier
Chris Coyier on May 4, 2021
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)
  • 1
  • 2
  • 3
  • ...
  • 7
  • 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