Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

prevOpen Source→html-all-known-attributesnext

html-all-known-attributes6.2.0

All HTML attributes known to the Humanity

Downloads per monthChangelogMIT Licenselibera manifesto
  • the top
  • Installation
  • Quick Take
  • Examples
  • IDEA
  • API — ALLHTMLATTRIB…
  • Changelog

Installation

Quick Take

Examples

  • Check email-client-specific HTML attributes
  • Inspect the number of known attributes
  • Iterate through the known attributes
  • Distinguish known attributes from application-specific ones

Idea

This package aims to have the most excessive list of all legit attribute names that can be put into HTML. Currently we have a list of 702 attribute names.

This includes deprecated attributes, Microsoft-proprietary-ones that email templates use (like mso-line-height-rule) and other-ones you’ve probably never seen before.

API — allHtmlAttribs

Imported it like this:

import { allHtmlAttribs } from "html-all-known-attributes";

allHtmlAttribs is a Setopens in a new tab of 702 strings — all HTML attribute names known to the Humanity.

Sets are more performant than arrays but the API is slightly different, for example, Array.prototype.includes() equivalent is Set.prototype.has().

Changelog

Open Changelog
↑ back to top
prev next

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab