1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > CSS Exercises 1</ title >
5
+ < style >
6
+ ul .nav li {
7
+ display : inline-block;
8
+ padding-right : 10px ;
9
+ }
10
+ </ style >
11
+ </ head >
12
+ < body >
13
+ < ul class ='nav '>
14
+ < li > < a href ="#explanation "> Home</ a > </ li >
15
+ < li > < a href ="#about_blue "> About blue</ a > </ li >
16
+ < li > < a href ="#about_yellow "> About yellow</ a > </ li >
17
+ </ ul >
18
+
19
+ < div id ='page_content '>
20
+
21
+ < h1 > All about colours</ h1 >
22
+
23
+ < div id ='explanation '>
24
+ < p > This is a page about colours. You need to fix it so that:</ p >
25
+ < ul >
26
+ < li > The sections about blue and yellow have 3pm solid black borders.</ li >
27
+ < li > The 'About blue' has a light blue background.</ li >
28
+ < li > The 'About yellow' has a light yellow background.</ li >
29
+ < li > The list of points in the 'About blue' section should be in blue text (but the paragraph text shouldn't be).</ li >
30
+ < li > The list of points in the 'About yellow' section should be in orange text (but the paragraph text shouldn't be).</ li >
31
+ < li > The final item in both colour section lists is the most important. It should be in font size 16px, with font weight bold.</ li >
32
+ < li > The navigation at the top should have a red background with white text.</ li >
33
+ </ ul >
34
+
35
+ </ div >
36
+
37
+ < div id ='about_blue ' class ='color-info '>
38
+ < h2 > About blue</ h2 >
39
+
40
+ < p > This section is all about the colour blue. This text should be black.</ p >
41
+
42
+ < ul >
43
+ < li > This is an unordered list.</ li >
44
+ < li > It contains some stuff about the colour blue.</ li >
45
+ < li > The text should be blue.</ li >
46
+ < li class ='important '> The biggest blue animal in the world is the blue whale.</ li >
47
+ </ ul >
48
+
49
+ </ div >
50
+
51
+ < div id ='about_yellow ' class ='color-info '>
52
+ < h2 > About blue</ h2 >
53
+
54
+ < p > The section is all about the colour yellow. This text should be black.</ p >
55
+
56
+ < ul >
57
+ < li > This is an unordered list.</ li >
58
+ < li > It contains some stuff about the colour yellow.</ li >
59
+ < li > The text should be orange.</ li >
60
+ < li class ='important '> The tastiest yellow fruit is the banana - much nicer than lemons.</ li >
61
+ </ ul >
62
+
63
+ </ div >
64
+
65
+ </ body >
66
+ </ html >
0 commit comments