---
title: "Discussion on \"Difference Between InnerHTML and outerHTML\" | Hashnode"
description: "Discussion on \"Difference Between InnerHTML and outerHTML\". What is innerHTML?\nThe innerHTML is a DOM element method that is used to get the whole content which is inside the element on which this method is applied. It doesn't return the element on which this method is called but only gives out whole text con..."
url: "https://hashnode.com/posts/difference-between-innerhtml-and-outerhtml/63a9e0bf62fe5319ad174884"
---

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

Discussion

# [Difference Between InnerHTML and outerHTML](https://prashanthandel.hashnode.dev/difference-between-innerhtml-and-outerhtml?utm_source=hashnode&utm_medium=feed)

What is innerHTML? The innerHTML is a DOM element method that is used to get the whole content which is inside the element on which this method is applied. It doesn't return the element on which this method is called but only gives out whole text con...

Dec 26, 2022 · 2 min read · prashanthandel.hashnode.dev  
Read the article

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

## Written by

[Prashant Handel](https://hashnode.com/@prashanthandel)

@prashanthandel · Indore, India

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

Frontend Developer

I'm a self taught web developer and a learner as well. I am sharing my experiences and knowledge here with a hope to help those who are beginners as sharing helps to grow together.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
