tagName Property

The tagName property returns the tag name of the element. In HTML, the returned value of the tagName property is always in UPPERCASE.

Syntax

element.tagName

Example: 1

Get the tagName of an element:

Leave a Reply

Your email address will not be published. Required fields are marked *