Loading video player…

Forms and Accessibility in HTML and CSS (Overview)

Welcome to Forms and Accessibility in HTML and CSS! The Elm Street Community Garden’s site can’t ask its visitors anything yet. In this course, you’ll add forms that everyone can fill in, with a mouse, a keyboard, or a screen reader.

Rosa, who coordinates the garden’s volunteers, wants work day sign-ups and plot applications on the site. You’ll build the work day sign-up form in the lessons.

In the project, you’ll build the plot application form yourself. The browser itself catches a bad value. Only once a visitor moves on does the form’s own CSS turn the field red and reveal the message written into its HTML.

Lighthouse’s automated accessibility audit scores the finished form 100. Lighthouse is one of four checks you’ll run, alongside the keyboard, the Accessibility pane, and a screen reader.

By the end of this course, you’ll know how to:

  • Build a form with a label for every field and input types that fit the data
  • Let the browser check what visitors type, and style the form and its errors to match the site
  • Check a page with the keyboard, the Accessibility pane, Lighthouse, and a screen reader
  • Build and audit Rosa’s plot application form

Before You Start

You need some programming experience, but this course has no JavaScript. You also need HTML and CSS: landmarks, custom properties, cascade layers, Flexbox, and media queries.

Use a current version of Chrome or Edge, an editor with a live preview, such as VS Code, and the screen reader built into your operating system. Whether you’re new here or not, your first lesson sets up the starter garden/ folder from the course’s sample code, so everyone starts from the same site.

How the Course Works

Lessons come as text and video, and each section ends with an exercise you code in the browser, with automated feedback. In the project, you build, style, and audit the application form, then explain it to an AI mentor. A quiz and a summary close the course.

Your first lesson is Send Data With a Form.

Download

Course Slides (.pdf)

474.7 KB
Download

Sample Code (.zip)

3.3 MB

00:00 Welcome to Forms and Accessibility in HTML and CSS. The Elm Street Community Garden’s site can’t ask its visitors anything yet. You’ll add forms that everyone can fill in, with a mouse, a keyboard, or a screen reader.

00:16 Here’s a first taste. Rosa, the garden’s volunteer coordinator, wants plot applications and work day sign-ups. This is her application form. Nadia, an applicant, types an email without its at sign.

00:30 The browser itself catches it. Once she moves on, the form’s styles turn the field red and show the message. Lighthouse, one of four checks you’ll learn, scores its accessibility one hundred.

00:44 You’ll build the sign-up form in the lessons, and the application form in the project.

00:51 In this course, you’ll learn how to: Build a form with a label for every field and input types that fit the data. Let the browser check what visitors type, and style the form and its errors to match the site.

01:05 Check a page with the keyboard, the Accessibility pane, Lighthouse, and a screen reader. And build and audit Rosa’s plot application form.

01:17 You need some programming experience, but this course has no JavaScript. You also need HTML and CSS: landmarks, custom properties, cascade layers, Flexbox, and media queries.

01:31 Use a current Chrome or Edge, an editor with a live preview, and your system’s built-in screen reader. Your first lesson sets up the starter folder, so everyone starts from the same site.

01:43 Each section has text and video lessons, then an exercise you code in the browser, with automated feedback. In the project, you also explain your form to an AI mentor.

01:54 A quiz and a summary close the course. Your first lesson is Send Data With a Form.

Become a Member to join the conversation.