Skip to content

Commit 08b9382

Browse files
committed
Initial commit
0 parents  commit 08b9382

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

exercise1.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<DOCTYPE html!>
2+
<html>
3+
<head>
4+
<title>CSS Exercises 1</title>
5+
<style>
6+
p {
7+
color: blue;
8+
font-family: 'Helvetica';
9+
font-size: 16px;}
10+
h1 {color: red;}
11+
ul li {background-color: yellow;}
12+
h2 {color: green; background-color: orange;}
13+
ol li {background-color: teal;}
14+
</style>
15+
</head>
16+
<body>
17+
<h1>Make me red!</h1>
18+
19+
<p>I am a paragraph I should be blue, Helvetica, size 16px.</p>
20+
21+
<ul>
22+
<li>This is an unordered list.</li>
23+
<li>All items in this list should have a yellow background.</li>
24+
<li>Just the items though - not the whole list!</li>
25+
</ul>
26+
27+
<h2>Make me green on an orange background</h2>
28+
29+
<p>I am a paragraph I should be blue, Helvetica, size 16px.</p>
30+
31+
<ol>
32+
<li>This is an ordered list.</li>
33+
<li>All items in this list should have a fuscia background.</li>
34+
<li>Just the items thought - not the whole list!</li>
35+
</ol>
36+
37+
</body>
38+
</html>

exercise1_solution.png

33.4 KB
Loading

0 commit comments

Comments
 (0)