Kevin Powell - CommunityKP-C
Kevin Powell - Community15mo ago
10 replies
Faker

Difference between innerHTML, innerText and textContent and their use cases

Hello guys, can someone explain the difference between innerHTML, innerText and textContent; from what I have understand, innerHMTL reads html tags that can be rendered by the browser but innerText and textContent doesn't.... but is there anything more to that?

Should we stick to only one of them or all have their use cases please
Was this page helpful?