summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/first-child.html
blob: 553d814668f5be1e255733e8110c9266014fc8a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
<title>:first-child test</title>
<style>
p:first-child {
  color: lime;
  background-color: black;
  padding: 5px;
}
</style>
</head>
<body>
<div>
  <p>This text is selected!</p>
  <p>This text isn't selected.</p>
</div>

<div>
  <h2>This text isn't selected: it's not a `p`.</h2>
  <p>This text isn't selected.</p>
</div>

</body>
</html>