HTML enters new control - switch: review and analysis

Зображення до статті HTML enters new control - switch: review and analysis
Зображення до статті 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.
🧩 Summary: HTML enters a new attribute of the switch that allows the forms to switch between two states. Although this new attribute is already supported by Safari, it is necessary to further investigate its use and limit before it is ready for wide use.
🧠 Own considerations: A new attribute of the HTML switch can greatly facilitate the creation of interactive forms. However, this can also lead to new challenges in terms of accessibility and compatibility with other browsers. Despite this, this attribute is an important step forward in the development of web technologies.