DEV Community

Cover image for HTML Updates
Devyn Clark
Devyn Clark

Posted on

HTML Updates

HTML Updates

With 2025 here at last, HTML has received a plethora of updates that we as developers can sink our teeth into to improve our skills.

A group of tags can now be used in a manner similar to an accordion layout, meaning that only one tag’s summary may be opened at a time. In addition to this, any non-summary content can now be styled with CSS using the Sub Selector ::details-content.

Speaking of styling your elements, tags can now have their tags styled through the ::picker(select) CSS Selector. Additionally, your tags can also be separated horizontally through the


tag.

Back on the purely HTML side of things, your checkbox may now be toggled when given the switch attribute, providing further accessibility. In terms of your text-typed inputs, they may now be wrapped in the tags to provide future developers an easier time reading legacy code.

After having been removed from browsers for years, the Media attribute is once again usable for tags. In case you don’t remember, the use of this attribute allows for you to make your video files as responsive as your img files.

In terms of updates on the server-side, the Declarative Shadow DOM now allows for better use of Web Components without the need for Javascript. For the longest time, the use of Javascript rendering was the only way for a developer to have a Web Component use the Shadow DOM, and leaving the Component without the Server-Side Rendering needed for faster performance, resilience, and hosting options. Now all you must do is place the shadowrootmode attribute to their elements and breathe a sigh of relief.

With all this and more, the future is looking bright for HTML.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay