HTML DOM Element tagName
HTML DOM Element tagName Property
The tagName property is a read-only property and it return the tag name of an element. The property name will be returned in UPPERCASE. The nodeName property returns tag name along with text node, comment node and document node.
Syntax:-
Its syntax is:- element.tagName
Return:-
Its return is:- string containning tag name of element