Skip to content

Commit 8ffdbf4

Browse files
committed
CSS Exercise
1 parent 3a6c335 commit 8ffdbf4

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

css/exercises/index.html

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,29 @@
99
<body>
1010
<script src="script.js"></script>
1111
<!-- 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>
12+
<h1 class="left">My Very Cool Web Page</h1>
13+
<h2 class="center">Why this Website is Very Cool</h2>
14+
<ol id="list-color">
1515
<li>I made it!</li>
1616
<li>This website is colorful!</li>
1717
</ol>
18-
<h2 id="cool-text">Why I love Web Development</h2>
18+
<h2 class="center" id="cool-text">Why I love Web Development</h2>
1919
<p>Web Development is a very cool skill that I love learning!</p>
2020
<p>I love making websites because all I have to do is reload the page to see the changes I have made!</p>
2121
</body>
22+
<style>
23+
body{
24+
background-color: yellow;
25+
} p {
26+
color: green;
27+
} h1 {
28+
font-size: 36px;
29+
} p {
30+
text-align: center;
31+
} #cool-text {
32+
color: blue;
33+
} #list-color {
34+
color: blueviolet;
35+
}
36+
</style>
2237
</html>

0 commit comments

Comments
 (0)