File tree 2 files changed +32
-5
lines changed 2 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 4
4
< meta charset ="utf-8 ">
5
5
< meta name ="viewport " content ="width=device-width ">
6
6
< title > CSS Exercises</ title >
7
- < link href ="style.css " rel ="stylesheet " type ="text/css " />
7
+ < style >
8
+ body {
9
+ background-color : yellow;
10
+ }
11
+
12
+ p {
13
+ color : green;
14
+ }
15
+
16
+ h1 {
17
+ font-size : 36px ;
18
+ }
19
+
20
+ </ style >
21
+ < link rel ="stylesheet " type ="text/css " href ="styles.css ">
8
22
</ head >
9
23
< body >
10
24
< script src ="script.js "> </ script >
11
25
<!-- 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 >
26
+
27
+ < h1 class ="center "> My Very Cool Web Page</ h1 >
28
+ < h2 class ="center "> Why this Website is Very Cool</ h2 >
29
+ < ol id ="list-color ">
15
30
< li > I made it!</ li >
16
31
< li > This website is colorful!</ li >
17
32
</ ol >
18
- < h2 id ="cool-text "> Why I love Web Development</ h2 >
33
+ < h2 class =" center " id ="cool-text "> Why I love Web Development</ h2 >
19
34
< p > Web Development is a very cool skill that I love learning!</ p >
20
35
< p > I love making websites because all I have to do is reload the page to see the changes I have made!</ p >
21
36
</ body >
Original file line number Diff line number Diff line change 1
1
/* Start adding your styling below! */
2
+
3
+ .center {
4
+ text-align : center;
5
+ }
6
+
7
+ # cool-text {
8
+ color : blue;
9
+ }
10
+
11
+ # list-color {
12
+ color : peru;
13
+ }
You can’t perform that action at this time.
0 commit comments