Initial commit

This commit is contained in:
NetMan 2024-01-06 22:22:17 +01:00
commit 724e316b07
2 changed files with 22 additions and 0 deletions

15
index.html Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DOM</title>
<script src="index.js" defer></script>
</head>
<body>
<h1>
THE TITLE OF YOUR WEBPAGE
</h1>
<div id="container"></div>
</body>
</html>

7
index.js Normal file
View File

@ -0,0 +1,7 @@
const container = document.querySelector('#container');
const content = document.createElement('div');
content.classList.add('content');
content.textContent = 'This is the glorious text-content!';
container.appendChild(content);