File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html >
3
3
< 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 >
4
25
< meta charset ="utf-8 ">
5
26
< meta name ="viewport " content ="width=device-width ">
6
27
< title > CSS Exercises</ title >
9
30
< body >
10
31
< script src ="script.js "> </ script >
11
32
<!-- 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 " >
15
36
< li > I made it!</ li >
16
37
< li > This website is colorful!</ li >
17
38
</ 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 >
19
40
< p > Web Development is a very cool skill that I love learning!</ p >
20
41
< p > I love making websites because all I have to do is reload the page to see the changes I have made!</ p >
21
42
</ body >
Original file line number Diff line number Diff line change 1
1
/* Start adding your styling below! */
2
+ body {
3
+ background-color : yellow;
4
+ }
You can’t perform that action at this time.
0 commit comments