Added first element (p)
This commit is contained in:
parent
724e316b07
commit
513f36c6a1
6
index.js
6
index.js
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue