Loading tutorials
<form> with an action and method, and that you know how HTML attributes and nesting work. It covers the two controls that collect free text: the single-line <input> and the multi-line <textarea>. Labels, specialized input types, and validation get5 min readinput elements and a submit button, and that you know what id and name attributes are. It covers how a label connects to a control, what a browser does with that connection, and the mistakes that break it.5 min read<form> with action and method, and that you know how name and value pairs make up submitted data. The JavaScript examples need only basic event handling. Here you will learn which button types exist, what happens between a click and the network re5 min read<form> with action and method, and that you know what a text input and a submit button are. A little JavaScript helps for the last section. By the end, you should be able to predict the exact data a form sends, and to explain why a control is sometime5 min read<form>, know that a control's name and value become submitted data, and know how to attach a <label> with for and id. It covers how the type attribute of <input> changes what the browser shows, what it checks, and what it sends.5 min readform element submits name and value pairs, how label elements attach to controls, and how name and value attributes become submitted data. Here we cover the three controls for picking from a set of options: checkboxes, radio buttons, and select menus. We5 min read<form> with named controls and a submit button, and that you know how name and value pairs are built. You should also be comfortable reading a URL and opening your browser's Network panel. The form method decides where the browser puts those pairs and5 min readname and value produce submitted data. No JavaScript is needed here.5 min readfor and id, and know that radio buttons share a name. You should also know how a checkbox and a radio button submit values. Here you will learn how fieldset and legend group controls, what that grouping does for assistive5 min readname attribute decides what gets submitted, and have seen the common type values such as email, tel, and number. Here you will learn how browsers fill in fields for the user, and which attributes tune the key6 min readrequired, pattern, min, max, minlength). It also assumes basic CSS selectors. You will learn which pseudo-classes the browser exposes for validation state, why the obvious 5 min readform element, how name and value pairs are built, and the built-in validation attributes. You also need basic JavaScript: event listeners, fetch, and promises. By the end you will be able to intercept a submission, read the data with FormData, and send it 5 min readrequired, pattern, min, max), the submit event, and basic DOM scripting. The Constraint Validation API is the set of properties, methods, and events that lets JavaScript read the browser's validation state and add rules the 4 min readname and value pairs become submitted data, the difference between GET and POST, and the basics of FormData and fetch. It covers how the browser sends files, what the server receives, and where validation has to happen.5 min readvalidity, setCustomValidity), and the way a label names a control. It covers how to show validation errors so that keyboard and screen reader users can find, hear, and fix them.5 min read