Any way to attach custom-attribute to the HTML element?

It’s custom attributes, not elements.

FYI Webflow allows to add custom attributes to anything.

We use this to make webflow templates dynamic. “ng” refers to Angular JS and often is required to add custom attributes to the HTML element… which is one of the rare things you can’t alter in Webflow, even in custom code.

This was a non issue though because in the vast majority of the cases these attributes can be set on the Body element.

We use them to set functionality to things like list filters

Or to alter the classes of an element to modify its aspect

Or to place lists of teasers (also some html {{ fields }} in this image)

and finally nodes, from another cms