Get the tagName of an element:
The result will be:
The tagName property returns the tag name of the element.
In HTML the returned value of the tagName property is always in UPPERCASE.
![]()
The tagName property is supported in all major browsers.
| Return Value: | A String, representing the tag name of the element |
|---|---|
| DOM Version | Core Level 1 |
Your message has been sent to W3Schools.