Skip to content

Commit f5058f0

Browse files
committed
finished exercises class 13
1 parent 3e769c8 commit f5058f0

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

css/exercises/index.html

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<style>
5+
body {
6+
background-color: yellow;
7+
.center-aligned{text-align: center;}
8+
9+
p {
10+
color:green
11+
}
12+
h1 {
13+
font-size: 36px;
14+
}
15+
#cool-text {
16+
color: blue
17+
}
18+
#list-items{
19+
color:orangered
20+
}
21+
22+
23+
}
24+
</style>
425
<meta charset="utf-8">
526
<meta name="viewport" content="width=device-width">
627
<title>CSS Exercises</title>
@@ -9,13 +30,13 @@
930
<body>
1031
<script src="script.js"></script>
1132
<!-- You do not need to do anything with script.js right now! Later, we will learn how to add JavaScript to websites! --->
12-
<h1>My Very Cool Web Page</h1>
13-
<h2>Why this Website is Very Cool</h2>
14-
<ol>
33+
<h1 class = "center-aligned">My Very Cool Web Page</h1>
34+
<h2 class = "center-aligned">Why this Website is Very Cool</h2>
35+
<ol id = "list-items">
1536
<li>I made it!</li>
1637
<li>This website is colorful!</li>
1738
</ol>
18-
<h2 id="cool-text">Why I love Web Development</h2>
39+
<h2 class = "center-aligned" id="cool-text">Why I love Web Development</h2>
1940
<p>Web Development is a very cool skill that I love learning!</p>
2041
<p>I love making websites because all I have to do is reload the page to see the changes I have made!</p>
2142
</body>

css/exercises/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/* Start adding your styling below! */
2+
body {
3+
background-color: yellow;
4+
}

0 commit comments

Comments
 (0)