If you look at the value of
innerHTML then you’ll see the content contained within the element, not including the HTML element tags. The “withIN” is why it’s called “inner” HTML
- 6. Interacting with Your Web Page: Getting to know the DOM
- Publisher: O'Reilly Media, Inc.
- Released: March 2014
what does the property innerHTML hold?