---
title: "Discussion on \"Difference Between innerText, textContent, and innerHTML\" | Hashnode"
description: "Discussion on \"Difference Between innerText, textContent, and innerHTML\". innetText Retrieves or sets the visible text of an element, ignoring any hidden content.  It only includes text that is shown to the user."
url: "https://hashnode.com/posts/difference-between-innertext-textcontent-and-innerhtml/66d99cf42c8702e887e732b1"
---

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

Discussion

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

innetText Retrieves or sets the visible text of an element, ignoring any hidden content. It only includes text that is shown to the user.

Sep 5, 2024 · 3 min read · jaytillu.hashnode.dev  
Updated Mar 5, 2025  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#dom](https://hashnode.com/tag/dom)
-   [#dom-manipulation](https://hashnode.com/tag/dom-manipulation)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#jay-tillu](https://hashnode.com/tag/jay-tillu)

## Written by

[Jay Tillu](https://hashnode.com/@jaytillu)

@jaytillu · India

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

Information Security Engineer

Hello! I'm Jay Tillu, an Information Security Engineer at Simple2Call. I have expertise in security frameworks and compliance, including NIST, ISO 27001, and ISO 27701. My specialities include Vulnerability Management, Threat Analysis, and Incident Response. I have also earned certifications in Google Cybersecurity and Microsoft Azure. I’m always eager to connect and discuss cybersecurity—let's get in touch!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
