HTML DOM tagName property
Definition and Usage
tagName property returns the tag name of the element.
HTML tagName returns the value of the property is capitalized.
Browser Support
All major browsers support tagName property
grammar
element .tagName
technical details
return value: | Label name string that represents the elements |
---|---|
DOM version | Core Level 1 Element Object |