Skip to content

Commit 95ded7a

Browse files
authored
Create README.md
1 parent 550e2a6 commit 95ded7a

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Task 04 – innerHTML vs textContent
2+
3+
## ✅ Objective:
4+
Understand and demonstrate the difference between `innerHTML` and `textContent`.
5+
6+
## 💡 Concepts Practiced:
7+
- DOM content manipulation
8+
- Difference between innerHTML & textContent
9+
10+
## 📘 What I Learned:
11+
- `innerHTML` parses HTML tags and renders them.
12+
- `textContent` treats everything as plain text.
13+
14+
## ▶️ Example Flow:
15+
1. Click on buttons to update a paragraph with innerHTML and textContent.
16+
2. Visual difference is clearly shown in rendering.

0 commit comments

Comments
 (0)