The Element.localName read-only property returns the local part of the qualified name of an element.
Element.localName
MDN Reference