Learn HTML DOM
Manipulating DOM Elements
4.4
Lesson

Updating HTML Inside an Element

We can get access to all the HTML code nested inside an HTML element using its innerHTML property.

In the console, we get a log of all the HTML nested inside the p element.