Skip to content

Commit 6d86dba

Browse files
committed
updates css in the index.html
1 parent 36154df commit 6d86dba

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

css/exercises/index.html

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,44 @@
55
<meta name="viewport" content="width=device-width">
66
<title>CSS Exercises</title>
77
<link href="style.css" rel="stylesheet" type="text/css" />
8+
<style>
9+
.center {
10+
text-align: center;
11+
}
12+
body{
13+
background-color: yellow;
14+
.center{
15+
text-align: center;
16+
}
17+
18+
19+
}
20+
p{
21+
color: green;
22+
}
23+
h1{
24+
font-size: 36px;
25+
26+
}
27+
#cool-text{
28+
color: blue;
29+
}
30+
#list-color{
31+
color:purple
32+
}
33+
34+
</style>
835
</head>
9-
<body>
36+
1037
<script src="script.js"></script>
1138
<!-- 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>
39+
<h1 class="center">My Very Cool Web Page</h1>
40+
<h2 class="center">Why this Website is Very Cool</h2>
41+
<ol id ="list-color">
1542
<li>I made it!</li>
1643
<li>This website is colorful!</li>
1744
</ol>
18-
<h2 id="cool-text">Why I love Web Development</h2>
45+
<h2 class = "center" id ="cool-text">Why I love Web Development</h2>
1946
<p>Web Development is a very cool skill that I love learning!</p>
2047
<p>I love making websites because all I have to do is reload the page to see the changes I have made!</p>
2148
</body>

0 commit comments

Comments
 (0)