Skip to content
CarbonlessBeta

Guidelines · WSG 3.6

Ensure code follows good semantic practices

A large DOM costs memory and CPU on every visit, and deeply nested markup usually signals styling and script that could be simpler.

How to satisfy it

  • Use native elements (button, details, dialog) rather than rebuilding them in script.
  • Flatten wrapper-heavy markup; every extra node is style and layout work.
  • Aim well under 1,500 elements for a content page.

Measured pages failing this guideline

From the 60 most recently measured pages. Each links to its full report.

This page explains how Carbonless applies WSG 3.6. The guideline itself is published by the W3C Sustainable Web Design Community Group: Web Sustainability Guidelines.