---
title: "Discussion on \"innerHTML Vs. textContent: The subtle difference.\" | Hashnode"
description: "Discussion on \"innerHTML Vs. textContent: The subtle difference.\". At first glance, both properties look like they do the same thing.\nWhile innerHTML provides a simple and convenient way to create HTML templates as strings and inject them into the DOM [Document Object Model], textContent only lets you create plain t..."
url: "https://hashnode.com/posts/innerhtml-vs-textcontent-the-subtle-difference/5fadeb22fa438d6532c7ea9b"
---

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

Discussion

# [innerHTML Vs. textContent: The subtle difference.](https://jossy.hashnode.dev/innerhtml-vs-textcontent-the-subtle-difference?utm_source=hashnode&utm_medium=feed)

At first glance, both properties look like they do the same thing. While innerHTML provides a simple and convenient way to create HTML templates as strings and inject them into the DOM \[Document Object Model\], textContent only lets you create plain t...

Nov 13, 2020 · 1 min read · jossy.hashnode.dev  
Read the article

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

## Written by

[Giwa Jossy](https://hashnode.com/@giwajossy)

@giwajossy · Lagos, Nigeria

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
