---
title: "Discussion on \"Using textContent vs innerHTML\" | Hashnode"
description: "Discussion on \"Using textContent vs innerHTML\". While working through challenge two of Facebook's and Andela's DevC qualification test, I noticed the test cases weren't accepting innerHTML over textContent, so I read up a bit. Here's why:\nAlthough both can be used to read and write text inside an ..."
url: "https://hashnode.com/posts/using-textcontent-vs-innerhtml/61e661dcbe5d7633af87cc72"
---

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

Discussion

# [Using textContent vs innerHTML](https://dozie.dev/using-textcontent-vs-innerhtml?utm_source=hashnode&utm_medium=feed)

While working through challenge two of Facebook's and Andela's DevC qualification test, I noticed the test cases weren't accepting innerHTML over textContent, so I read up a bit. Here's why: Although both can be used to read and write text inside an ...

Aug 10, 2019 · 1 min read · dozie.dev  
Read the article

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

## Written by

[Nnadozie Okeke](https://hashnode.com/@dozieokk)

@dozieokk · Calgary, Canada

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

Full-Stack Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
