Skip to content

Commit be8c1a5

Browse files
author
LAPTOP-S7O80SEK\kangh
committed
First Commit
1 parent 27f19cd commit be8c1a5

File tree

6 files changed

+32
-0
lines changed

6 files changed

+32
-0
lines changed

class.css

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
h1 {
2+
font-size: 60px;
3+
}
4+
5+
.colorbtn {
6+
display: block;
7+
margin-top: 50px;
8+
font-size: 30px;
9+
}

class.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Assignment</title>
6+
<link rel="stylesheet" href="class.css">
7+
</head>
8+
<body>
9+
<h1 id="header">
10+
This is an Assignment page
11+
</h1>
12+
13+
<p1>Click the button below to change the color of the heading!</p1>
14+
15+
<button onclick="myFunction()" class="colorbtn">Click me!</button>
16+
17+
<script src="firstclass.js">
18+
</script>
19+
</body>
20+
</html>

class.js

Whitespace-only changes.

firstclass.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function myFunction() {
2+
document.getElementById('header').style.color = 'Red';
3+
}

index.html

Whitespace-only changes.

secondclass.js

Whitespace-only changes.

0 commit comments

Comments
 (0)