outerHTML

The outerHTML JS Element represents the markup of the element and its contents.

Syntax

element.outerHTML [ = value ]

Examples

1 · Inline

2 · Internal

attachShadow

classList

className

closest

getAttribute

getAttributeNames

getAttributeNS

hasAttribute

hasAttributeNS

hasAttributes

id

innerHTML

insertAdjacentHTML

localName

matches

namespaceURI

prefix

removeAttribute

removeAttributeNS

setAttribute

setAttributeNS

shadowRoot

slot

tagName

toggleAttribute

World Wide Web Consortium (W3C)

Home Menu