HTML input types Playground

Pak RT’s 17 August T-shirt form: type into a real <input> and read back its value (what type reaches JS?), valueAsNumber, ValidityState and the browser’s…

Why it matters

A comfortable phone form makes a real difference: the wrong keyboard means typos and people giving up halfway through checkout. The right type gives the right keyboard, free validation and autofill without JS. Yet it also sanitises the value: number throws away "+62", and value stays a string.

The key idea

The right type is the cheapest UX win there is

Common mistakes

Try it in this playground