HTML

HTML Forms and Inputs

Inputs, labels, validation and what actually happens when a form is submitted.

15 articles Last updated 02 Jul 2026

Forms and Inputs Articles

The HTML form Element: action and method

A form is the oldest interactive feature in HTML and works entirely without JavaScript. Understanding what submission actually does explains most form problems.

By Coding Tutorials Team 2 Jul 2026

GET or POST: Choosing a Form Method

The choice between the two methods is not about size or preference. It comes down to whether the request reads something or changes something.

By Coding Tutorials Team 2 Jul 2026

Input Types and When to Use Each One

The type attribute changes the keyboard on a phone, the validation applied, and the interface offered. Two of the types are best avoided.

By Coding Tutorials Team 2 Jul 2026

Labels: Why Every Input Needs One

A label does three things at once: it names the field for screen readers, enlarges the click target, and survives the field being filled in.

By Coding Tutorials Team 30 Jun 2026

Checkboxes and Radio Buttons in HTML

Both controls submit nothing when unselected, which surprises people writing server code. Radio grouping is established by a shared name rather than by markup.

By Coding Tutorials Team 30 Jun 2026

Select Dropdowns, optgroup and datalist

A select is right for long lists and wrong for short ones. The datalist element covers the case where a user might type something you did not anticipate.

By Coding Tutorials Team 30 Jun 2026

The textarea Element for Multi-line Input

The textarea is the one form control whose value is not set by an attribute, and that difference causes a specific and avoidable bug.

By Coding Tutorials Team 28 Jun 2026

Buttons in Forms: submit, reset and button

A button inside a form defaults to submitting it. That default is responsible for a lot of forms that submit when someone clicks something unrelated.

By Coding Tutorials Team 28 Jun 2026

Mobile Keyboards, inputmode and autocomplete

Most forms are filled in on a phone. Two attributes decide which keyboard appears and whether the browser can fill the field automatically.

By Coding Tutorials Team 26 Jun 2026

Grouping Fields with fieldset and legend

A group of radio buttons answers a question, and without a fieldset that question is never announced. It is the most commonly skipped element in form markup.

By Coding Tutorials Team 26 Jun 2026

Placeholder Text and Why It Causes Problems

Placeholder-only forms look clean in a mockup and fail as soon as someone starts typing. The problems are well documented and easily avoided.

By Coding Tutorials Team 26 Jun 2026