CSS - Styling Forms Part 1

Jun 9, 2026 3:00pm UTC (Check your timezone)

Theory Workshop Lab

Instructors: Jess, Carmen, and Eda

Styling Forms

Download iCal File

Before this session, please:

During this session, we’ll:

After this session, please:

Instructor notes

Best Practices for Styling Forms: What Are Some Best Practices for Styling Text Inputs?

When styling text inputs, some best practices we should be aware of are:

Best Practices for Styling Forms: When Should You Use appearance: none to Deal with Issues Styling Search Inputs and Checkboxes?

Styling checkboxes and search inputs is usually more difficult than styling other input elements because the browsers define specific default styles for them.

To add custom styles, we can use the appearance: none to remove default browser styling. Creating a custom style also helps with consistency across different platforms.

However, it might also remove the default features such as focus indicators, so we need to make sure that our custom-styled inputs remain accessible.

Best Practices for Styling Forms: What Are Common Issues When Styling Special Input Elements?

The styling of some input types such as date and color will be different from browser to browser, and it relies on complex pseudo-elements (for example, Chrome and Safari use ::-webkit-color-swatch, and Firefox uses ::-moz-color-swatch for color inputs).

Because of these challenges, it’s useful to keep in mind that developers usually need to rely on JavaScript libraries or custom components to style these elements!

Design a Registration Form

We’ll take a look at this workshop and practice styling forms!

Design a Contact Form

This lab exercise goes through the things we’ve learned in this unit, we’ll go through it and make sure you have the support to complete it on your own!