Loading tutorials
name attribute on a control. Every control needs a label. A label tells sighted users what to type. It also gives screen readers a name to announce, and it makes the control easier to click.3 min read<form> with a few inputs. It explains how buttons trigger submission, what the browser does next, and the mistakes that cause forms to submit when you don't expect them to.2 min read<form> element with action and method does, and have used a text input and a submit button. It explains what the browser puts into the request when a form is submitted.2 min read<form>, label a text input, and know that a control's name becomes the key in the submitted data. Here you will learn how the type attribute changes what the browser shows, what it validates, and what it sends.2 min readname=value pairs, how labels attach to controls, and basic HTML nesting. Here you will pick the right choice control and predict exactly what it sends.2 min readform with an action attribute. It also assumes you know that each control with a name contributes a name and value pair to the submitted data.2 min readname and value become submitted data. Here you will let the browser check values before the form is sent, with no JavaScript.2 min readfor and id, and know that radio buttons sharing a name form one group. Here you will learn how fieldset and legend give a set of controls a shared, accessible name.2 min readname and type work. It covers the attributes that help browsers and password managers fill fields, and the ones that hint at the right on-screen keyboard.2 min readrequired, pattern, min, max) and basic CSS selectors. Here you will learn how to style controls based on whether they pass validation.2 min readname and value pairs become submitted data, and understand built-in validation attributes. You also need basic JavaScript: event listeners, objects, and fetch.2 min readrequired, pattern, min, max), how name and value work, and basic JavaScript event handling.2 min readmethod and enctype affect a submission, how name attributes become submitted fields, and how to label a control. It covers the file input, why uploads need a different encoding, and how to read the selected files in JavaScript.2 min readvalidity, setCustomValidity) reports problems. It shows how to make validation errors reach people who use screen readers or only a keyboard.2 min read