Global attributes are allowed on every HTML element: accesskey, autofocus, contenteditable, dir, draggable, hidden, inert, lang, nonce, popover, spellcheck, style, tabindex, title, translate and more, plus id, class and slot from DOM, event handler attributes, and any data-* attribute.
Boolean attributes (disabled, checked, required, inert, open…) are true when present and false when absent. The value doesn't matter: disabled="false" still disables. A valid value is the empty string or the attribute's own name. To turn one off, remove it (removeAttribute, or set the IDL property to false). Don't confuse them with enumerated attributes like contenteditable, spellcheck and draggable, where "false" is a real keyword.
hidden is now enumerated: hidden, "" or any invalid value means Hidden, and until-found means Hidden Until Found. Hidden content isn't rendered, and the standard implements that through the UA stylesheet, [hidden]:not([hidden=until-found i]) { display: none }. Any author display rule beats a UA rule, so .row { display: flex } makes a hidden row visible again. until-found uses content-visibility: hidden instead, so find-in-page and fragment navigation can reach the content: the browser fires beforematch and removes the attribute before scrolling to it.
data-* attributes hold private data for the page's own scripts. Names must have something after data-, and the parser lowercases attribute names, so data-userId becomes data-userid. element.dataset maps data-product-id to dataset.productId; values are always strings, writing dataset.orderCount = 3 creates data-order-count="3", and delete removes the attribute. They are not for metadata meant for other software; that's what microdata or a standard attribute is for.