Topic

HTML

Stay updated with HTML standards, semantic markup, and web accessibility. Our digest aggregates CSS integration, HTML5 features, and DOM manipulation discussions from developer communities.

What this topic tracks

  • Framework and platform updates
  • UI architecture, build tooling, and performance
  • Browser, accessibility, and product engineering practices

HTML · 56 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

16 stories

HTML esoterica – en-GB vs. en_GB

htmhell.dev · 1 Dec

HTML

HTML’s `lang` attribute uses BCP 47 language tags such as `en-GB`, while Open Graph’s `og:locale` uses locale identifiers such as `en_GB`.

A language identifies language alone; a locale also specifies regional conventions for dates, numbers, currency, and text handling. The underscore comes from POSIX conventions standardized through ISO/IEC 15897, whereas BCP 47 requires hyphens. Because OGP rarely needs locale-sensitive data, the author suggests replacing `og:locale` with `lang` on individual metadata elements.

Celebrate June rituals with Solstice Bingo!

dev.to · 11 Jun

CSS · HTML · JavaScript

Solstice Bingo is a browser-based game inspired by June traditions worldwide, built using plain HTML, CSS, and JavaScript.

The project features dynamic background sky animations and persists progress via localStorage. Developed with Gemini and Claude as coding assistants, the game serves as an interactive celebration of global rituals and a personal learning project.

CSS Clicker

lyra.horse · 12 Feb

CSS · Frontend · HTML

CSS Clicker is an innovative idle game built entirely using HTML and CSS, functioning without any JavaScript or server-side code.

Developed as a technical challenge inspired by the Cohost community, it allows players to build and upgrade websites. The project demonstrates the power of CSS media queries and state management without traditional scripting.

CSS: the bomb inside your inbox

portswigger.net · 18 Aug

Cybersecurity · CSS · HTML

Gareth Heyes demonstrates how discrepancies between browsers and webmail HTML/CSS sanitizers enable trust-boundary escapes, UI manipulation, indirect prompt injection, token exfiltration, tracking, and password theft across services including Outlook, Fastmail, Gmail, and ProtonMail.

The research details CSS mutation, CSS hotwiring, CSS gadgets, and keyloggers, then recommends sandboxed iframes, strict allowlists, blocked requests, and safer sanitization.

Modern CSS Code Snippets

modern-css.com · 16 Feb

CSS · Frontend · HTML

The content provides a curated collection of modern CSS techniques that serve as native replacements for legacy hacks.

It focuses on simplifying web development by offering weekly side-by-side comparisons, helping developers transition from outdated workarounds to clean, modern standards for common styling challenges.

HTML is getting cool again: Meet the Invoker Commands API

dev.to · 22 Aug

Frontend · HTML · React

The Invoker Commands API lets buttons declaratively control dialogs and popovers through `commandFor` and `command`, reducing JavaScript event handlers and application state.

It shifts interaction logic to the browser and works with frameworks such as React, where JSX uses `commandFor`. However, it is new, with broad support only in browsers released since December 2025.

The Proportional Web

owickstrom.github.io · 12 Jul

CSS · Frontend · HTML

Oskar Wickström introduces The Proportional Web, a responsive CSS stylesheet inspired by Robert Bringhurst's The Elements of Typographic Style.

It provides a clean, minimalist, and typographic-focused framework for prose-heavy web documents, utilizing rem units, semantic HTML5, and Alegreya fonts to ensure readability across devices.

You Don't Need Initial-Scale In Your HTML

vale.rocks · 2 Sept

Frontend · HTML · Mobile

The `initial-scale=1.0` setting in HTML’s viewport meta tag was once needed to address zooming issues in older iOS and other browsers.

Modern browsers no longer require it, so responsive sites can use only `<meta name="viewport" content="width=device-width">`, reducing unnecessary bytes while preserving behavior.

You can use newline characters in URLs

lemire.me · 28 Feb

Frontend · HTML · Computer Science

Daniel Lemire explores the flexibility of the WHATWG URL specification regarding whitespace.

Browsers ignore ASCII tabs and newlines in standard URLs, though they trigger validation errors. Data URLs, including Base64-encoded images and SVG, offer even greater freedom, allowing various whitespace characters for improved readability without breaking functionality in modern web browsers.

My HTML Boilerplate

vale.rocks · 9 Sept

Accessibility · Frontend · HTML

The essay presents an opinionated HTML boilerplate designed for modern compatibility, performance, accessibility, and discoverability.

It explains the purpose and ordering of essential elements, including UTF-8, viewport and text scaling, stylesheets, fonts, Open Graph metadata, canonical URLs, theming, feeds, search, PWA manifests, and semantic body structure, while noting that pages require tailored additions.

Introducing Microlighter

daverupert.com · 19 Aug

CSS · Frontend · HTML

MicroLighter is a zero-dependency, approximately 2KB client-side syntax highlighter built on the CSS Custom Highlights API instead of DOM-injected spans.

It uses TextMate grammars loaded on demand, human-readable light-dark() themes, and a separate <micro-lighter> web component for features such as line numbers and copy controls.

ARIA, anti-patterns, and you

dbushell.com · 26 Jun

Accessibility · Frontend · HTML

The ARIA Authoring Practices Guide (APG) is frequently misused as a best-practices manual for accessibility.

It is meant to demonstrate ARIA specifications, not provide production-ready code. Developers should prioritize native HTML over ARIA to avoid common accessibility errors. Over-reliance on LLMs to generate code from the APG further exacerbates these critical web accessibility issues.

Inline rendering with document.currentScript

leanrada.com · 19 Oct

Frontend · HTML · JavaScript

Inline scripts using document.currentScript can replace themselves with computed content, enabling lightweight dynamic rendering without IDs, querySelectors, or a templating backend.

Examples include current or relative years, random greetings, character-level animation markup, metadata-derived headings, and updating footers. The same local-script pattern can hydrate self-contained interactive widgets such as counters. It also supports async data-driven rendering by saving currentScript, though external fetching adds a request and injected HTML must be sanitised; synchronous aliases may hurt performance.

Page weight matters

nh3.dev · 9 Jul

HTML · Performance · Software Architecture

Modern web pages have become unnecessarily bloated, prioritizing complex frameworks and excessive JavaScript over performance and user respect.

By returning to static HTML and CSS, developers can build faster, more accessible sites. Successful examples like McMaster-Carr demonstrate that performance-oriented, minimalist design improves user experience and business outcomes, proving that craftsmanship remains essential in the digital age.

Adding insular script like it's 1626

djmurphy.net · 1 Jan

Accessibility · Frontend · HTML

This article explores the technical and cultural journey of reintegrating the historical Cló Gaelach (insular Irish script) into modern web environments.

The author discusses the transition from the traditional script, which used dots over consonants, to the modern Latin character set that uses the 'h' modifier. To preserve heritage while maintaining web standards, the author leverages OTF 'discretionary ligatures' and Font Forge to automatically replace consonant-h pairs with their historical dotted equivalents visually. This method ensures that the underlying text remain accessible for copy-pasting and screen readers. Additionally, the post details a custom Astro component using the HTML <ruby> element to provide English translations over Irish text, balancing idiosyncratic design with modern accessibility and data portability considerations.

Where it came fromLobstersDev.toHacker NewsCreate a Snapbyte.dev digest and choose HTML as one of your topics.Build your digest