html-syntax-guidelines

HTML syntax guidelines

This is a draft, WIP document aiming to collect the various de facto design decisions that permeate the syntax of modern HTML elements and their APIs. It is primarily aimed at custom element authors, but hopefully some of these may be more broadly useful.

Other (generally higher level) guidelines for writing custom elements:

Attributes & Properties

Attribute, child element, JS property, or CSS custom property?

Naming

By data type

Elements

Events

Methods