What is tag name in HTML?

The tagName read-only property of the Element interface returns the tag name of the element on which it is invoked. For example, if the element is an , its tagname attribute is “IMG” (for HTML documents; it may be cased differently for XML/XHTML documents). Language: English