1getValue.innerHTML// => This element is <strong>strong</strong> and has some super fun <code>code</code>!1innerHTML shows everything inside of the element.
2innerText shows only the text inside of the element.1Inner text below. It inject string as it is into the element.
2My name is <b class="name">Raj Yadav</b>.
3
4Inner html below. It renders the string into the element and treat as part of html document.
5My name is Raj Yadav.