-
Notifications
You must be signed in to change notification settings - Fork 14
/
26-grouped-animals.html
58 lines (43 loc) · 1.77 KB
/
26-grouped-animals.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
This is a webpage about animal group names, with a few headings and images as examples.
There are already 2 CSS rules to style the <h1>s - one with a pseudo selector, and one without. Add another selector to
each of the rules, so that they also style <h2>s.
*/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: Grouped animals</title>
<style>
p {
font-family: sans-serif;
}
img {
max-width: 150px;
}
h2, h1 {
font-family: fantasy;
border-bottom: 1px solid rgb(230, 230, 230);
padding: 3px;
}
h2:hover, h1:hover {
background-color: rgb(248, 255, 199);
}
</style>
</head>
<body>
<h1>Animal group names</h1>
<p>For many species of animals, there are names that we use to refer to a group of them - like a flock of birds. Here are a few you might not know.</p>
<h2>A skulk of foxes</h2>
<p>Also called a "leash."</p>
<img src="https://www.kasandbox.org/programming-images/animals/fox.png">
<img src="https://www.kasandbox.org/programming-images/animals/fox.png">
<h2>A clowder of cats</h2>
<p>Also called a "pounce", "glaring", "kindle", or "clutter."</p>
<img src="https://www.kasandbox.org/programming-images/animals/cat.png">
<img src="https://www.kasandbox.org/programming-images/animals/cat.png">
<p>
<a href="http://en.wikipedia.org/wiki/List_of_animal_names">Learn more on Wikipedia</a>
</p>
</body>
</html>