File tree Expand file tree Collapse file tree 1 file changed +32
-5
lines changed Expand file tree Collapse file tree 1 file changed +32
-5
lines changed Original file line number Diff line number Diff line change 5
5
< meta name ="viewport " content ="width=device-width ">
6
6
< title > CSS Exercises</ title >
7
7
< 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 >
8
35
</ head >
9
- < body >
36
+
10
37
< script src ="script.js "> </ script >
11
38
<!-- 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 " >
15
42
< li > I made it!</ li >
16
43
< li > This website is colorful!</ li >
17
44
</ 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 >
19
46
< p > Web Development is a very cool skill that I love learning!</ p >
20
47
< p > I love making websites because all I have to do is reload the page to see the changes I have made!</ p >
21
48
</ body >
You can’t perform that action at this time.
0 commit comments