HTML DOM Element outerHTML
HTML DOM Element outerHTML Property
The outerHTML property is used to either set or return the HTML element that includes attributes, start tag, and end tag.
Syntax:-
Its syntax is:- element.outerHTML OR element.outerHTML = text
Return:-
Its return is:- HTML content of the element that includes attributes, start tag and end tag
Further Explanation:-
Value | Description |
text | The new HTML content. |