[HTML] What attributes can be inherited by a child or descendant of an element?

[HTML] What attributes can be inherited by a child or descendant of an element?
0

#1

Hi. I found out that attributes of an element that has descendant or child elements are inherited by these descendants.
For example:

<div contenteditable="true" spellcheck="true">
  <p>Some random editable text</p>
</div>

The paragraph inside the div will be content-editable and have spellchecking.

Is that the case with every attribute in HTML? Or are there exceptions?


#2

#3

I’m not talking about CSS here. I know what inheritance in CSS is.


#4

https://www.w3.org/TR/2008/WD-html5-20080610/semantics.html#global

Id, is not
Title, is
Lang, is
Dir, is
Class, is not
Irrelevant, is ( i think)
Style, is not ( i think)
data-*, is not (i think)
Etc, refer to html ref like
https://www.w3.org/TR/2008/WD-html5-20080610/text-level.html#attributes
https://www.w3.org/TR/2008/WD-html5-20080610/the-canvas.html#dimension
https://www.w3.org/TR/2008/WD-html5-20080610/tabular.html#attributes0
https://www.w3.org/TR/2008/WD-html5-20080610/interactive-elements.html#global0
https://www.w3.org/TR/2008/WD-html5-20080610/interactive-elements.html#the-template
https://www.w3.org/TR/2008/WD-html5-20080610/structured.html#the-sessionstorage
https://www.w3.org/TR/2008/WD-html5-20080610/editing.html#contenteditable
https://www.w3.org/TR/2008/WD-html5-20080610/editing.html#the-draggable

Newer html5.2 spec here
https://www.w3.org/TR/html52/


#5

Do you know the term that this behavior is called with?