nodeName

external val nodeName: String(source)

The read-only nodeName property of Node returns the name of the current node as a string.

MDN Reference