---
title: "Discussion on \"Difference between innerHTML, innerText and textContent\" | Hashnode"
description: "Discussion on \"Difference between innerHTML, innerText and textContent\". understanding the uses of each by javascript snippets"
url: "https://hashnode.com/posts/difference-between-innerhtml-innertext-and-textcontent/6318a8995abe8613b3d2e3a7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference between innerHTML, innerText and textContent](https://mainak99.hashnode.dev/difference-between-innerhtml-innertext-and-textcontent?utm_source=hashnode&utm_medium=feed)

understanding the uses of each by javascript snippets

Sep 7, 2022 · 2 min read · mainak99.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Mainak Halder](https://hashnode.com/@Mainak99dev)

@Mainak99dev · India

  
[View profile](https://hashnode.com/@Mainak99dev)

Keen to discover

Tech enthusiast. (Full- stack developer)

## Responses 1

Markdown supported · ⌘↵ to post

[Daniel Onikola](https://hashnode.com/@Thedanielwilliams)

[Sep 7, 2022](https://hashnode.com/posts/difference-between-innerhtml-innertext-and-textcontent/6318a8995abe8613b3d2e3a7/comment/6318b5d06b34d71380dab247)

Interesting, thank you for sharing.
