Added first element (p)

This commit is contained in:
NetMan 2024-01-06 22:22:57 +01:00
parent 724e316b07
commit 513f36c6a1
1 changed files with 6 additions and 0 deletions

View File

@ -5,3 +5,9 @@ content.classList.add('content');
content.textContent = 'This is the glorious text-content!'; content.textContent = 'This is the glorious text-content!';
container.appendChild(content); container.appendChild(content);
const p1 = document.createElement('p');
p1.style.color = "#f00";
p1.textContent = "Hey I'm red!";
container.appendChild(p1);