.outerHTML
Term side of the Card
Topic: Object on Page
Unit title: .outerHTML
Categories: Property
Explanation side of the Card
Explanation: The browser API property that returns the HTML serialization of the element, including the element itself. It's useful for getting the full HTML representation of an element as a string or for replacing an element's entire content with new HTML.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 11
- The safari browser supports this feature starting from version 1.3
Availability: