The console.dirxml() static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
console.dirxml()
MDN Reference