After searching through web i understood the difference between innerHTML and outerHTML.
However i am having hard time understanding the difference between innerText and outerText. Both appear almost same to me.
Can anyone help me understand this with a nice illustration ?
Thank You !
innerText
changes only text within HTML tags, e.g.Becomes
Whereas
outerText
:Becomes