sync
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Day 21</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<script src="script.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h2>Hello cruel world!</h2>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let h2 = document.querySelector('h2');
|
||||
h2.innerText = 'The DOM is Magical';
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
body {
|
||||
background-color: indigo;
|
||||
color: white;
|
||||
}
|
||||
Reference in New Issue
Block a user