17 Jul, 2026
1 min read

Switching It Up With HTML’s Latest Control — Smashing Magazine – Beragampengetahuan

After years of relying on checkbox hacks to create a “switch” control for forms that toggle between two states, HTML may be gaining a native way to go about it by adding a switch attribute to checkbox inputs. Development has been years in the making, but Safari recently pushed the matter by releasing support for […]

1 min read

Switching It Up With HTML’s Latest Control – Beragampengetahuan

The web is no stranger to taking HTML elements and transforming them to look, act, and feel like something completely different. A common example of this is the switch, or toggle, component. We would hide a checkbox beneath several layers of styles, define the ARIA role as “switch,” and then ship. However, this approach posed […]