7 AnswersNew Answer
It returns the html content (html tags and their content) that is inside a given element. For example: <div id="test"> <p> return me ! <p> </div> when you call var el = document.querySelector("#test").innerHTML; it'll return <p> return me !! </p> furthermore innerHTML can similarly be used to set/change content as well
oh.. thanks @KINGDX
The innerHTML feature returns the content of a HTML element.
it is a set of HTML elements or content 🤔
Hi, Modifies html content.