Obtaining Information about Elements

Let's more explore DOM in this lesson.

HTML content

The innerHTML property will retrieve the HTML content of your DOM element.

Console
Use of 'innerHTML' property

Textual content

The textContent property returns all the text content of a DOM element, without ...