nodeName

Returns a string appropriate for the type of node.

MDN Reference