From 513f36c6a1f6e5a37c57a2215beae57acd0c84a4 Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Sat, 6 Jan 2024 22:22:57 +0100 Subject: [PATCH] Added first element (p) --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index ba8972a..1e4665d 100644 --- a/index.js +++ b/index.js @@ -5,3 +5,9 @@ content.classList.add('content'); content.textContent = 'This is the glorious text-content!'; container.appendChild(content); + +const p1 = document.createElement('p'); +p1.style.color = "#f00"; +p1.textContent = "Hey I'm red!"; + +container.appendChild(p1);