HTML enters new control - switch: review and analysis


The article considers the development and use of a new attribute of the switch in HTML, which allows the forms to switch between two states. The development lasted for many years, but Safari has recently advanced this case by releasing the attribute at Safari Technology Preview 185 and Safari 17.4.
🚀 HTML has long used items to create other sensations and appearance. A switch or exclusion component is a common example of such use. However, this approach had some accessibility problems.
💡 The Safari Technology Preview 185 and Safari 17.4 were presented with a built -in HTML switch. This new element derives from an approach with a hidden flag and aims to make access and use of control more consistent.
- 📌 New attribute switch in HTML.
- 📌 Safari support for a new switch attribute.
- 📌 Use new pseudo -elements to stylize the switch.
- 📌 Current restrictions and reviews on the use of the switch.
Для підготовки контенту ми дослідили статті, присвячені сучасним підходам у створенні сайтів, UX/UI дизайну та просуванню в Google:
https://www.smashingmagazine.com/2024/05/switching-it-up-html-latest-control/