tagName

The tagName JS Element returns the HTML-uppercased qualified name.

Syntax

qualifiedName = element.tagName

Examples

1 · html

2 · head

3 · body

4 · custom

attachShadow

classList

className

closest

getAttribute

getAttributeNames

getAttributeNS

hasAttribute

hasAttributeNS

hasAttributes

id

innerHTML

insertAdjacentHTML

localName

matches

namespaceURI

outerHTML

prefix

removeAttribute

removeAttributeNS

setAttribute

setAttributeNS

shadowRoot

slot

toggleAttribute

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu