We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 550e2a6 commit 95ded7aCopy full SHA for 95ded7a
1 file changed
task04-innerHTML-vs-textContent/README.md
@@ -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