Skip to content

Commit 6023d58

Browse files
committed
module 3.3.2
1 parent 60b8b1a commit 6023d58

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

module_3.3.2/index.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<!--It's a best practice to always declare DOCTYPE!-->
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<link rel="stylesheet" href="style.css">
7+
</head>
8+
<body>
9+
<p>Pseudo-classes are a way to select HTML elements based on their state as opposed to their HTML structure. You can read more about pseudo-classes here.
10+
11+
Pseudo-classes must always be applied to an existing selector. Their "flag character" is the colon (":"), as you can see used in the below examples. Here are some of the most popular pseudo-classes.
12+
</p>
13+
<a href="https://www.microsoft.com">www.microsoft.com</a>
14+
<br />
15+
<a href="http://www.w3.org">www.w3.org</a>
16+
<ul>
17+
<li>item 1</li>
18+
<li>item 2</li>
19+
<li>item 3</li>
20+
<li>item 4</li>
21+
</ul>
22+
<input />
23+
</body>
24+
</html>

module_3.3.2/style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
li:hover {
2+
background-color: yellow;
3+
}
4+
a:link {
5+
color: green;
6+
}
7+
a:visited {
8+
color: gray;
9+
}
10+
input:focus {
11+
background-color: blue;
12+
}
13+
p:active {
14+
color: red;
15+
}

0 commit comments

Comments
 (0)