forked from DigitalHistory/css-styling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (37 loc) · 1.63 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>CSS exercise</title>
<link href="./style.css" rel="stylesheet"/>
</head>
<body>
<main>
<article>
<header>
<h1>Simple CSS Styling Exercise</h1>
</header>
<section class="content">
<p class="normal">Here is a normal paragraph</p>
<p class="normal">Here is another normal paragraph</p>
<p class="red">This paragraph is class red</p>
<p class="red" id="green">This paragraph is class red, but also has id green.</p>
<ul id="mainlist">
<li class="red">List item 1 -- class of red</li>
<li>List item 2</li>
<li id="special">List item 3 -- id of special</li>
<li>List item 4</li>
<li class="subspan">List item 5 <span class="bordered">with bordered span as child</span></li>
<li>List item 6</li>
</ul>
<div class="child-and-grand">
<p>try out two selectors. The first should address both this paragraph and the one below</p>
<div>
<p>The second should <strong>only</strong> address one of them. Hint: try using both child and descendant selectors. </p>
</div>
</div>
</section>
</article>
</main>
</body>
</html>