Search
We can access an HTML element and all the nested code inside it using its outerHTML property.
outerHTML
In the console, we get a string representing the p element and all the nested elements inside it.
p