File tree Expand file tree Collapse file tree 2 files changed +27
-20
lines changed Expand file tree Collapse file tree 2 files changed +27
-20
lines changed Original file line number Diff line number Diff line change 11
11
</ head >
12
12
13
13
< body >
14
- < div >
15
- Lorem ipsum, dolor sit amet consectetur adipisicing elit. Iure hic ea
16
- voluptates corrupti nisi repellendus mollitia corporis vel iusto ducimus.
17
- </ div >
18
- < div class ="header ">
19
- Lorem ipsum dolor, sit amet consectetur adipisicing elit. Unde soluta
20
- temporibus asperiores ut doloribus tempore deleniti, inventore ab labore
21
- blanditiis.
22
- </ div >
23
- < a href ="# "> i'm a simple link</ a >
14
+ < a href ="# "> general link</ a >
15
+ < a href ="https://www.css3.com/ "> visited link</ a >
16
+ < a href ="# "> hover link</ a >
17
+ < a href ="# "> active link</ a >
18
+ < a > simple link</ a >
24
19
</ body >
25
20
</ html >
Original file line number Diff line number Diff line change 1
- /* Selectors Re-Visited - :hover pseudo-class Selector */
1
+ /*
2
+ :link - unvisited links with href
3
+ :visited - visited links
4
+ :hover - hover
5
+ :active - as the user click's
6
+ a - all links
7
+ */
8
+ a {
9
+ display : block;
10
+ background : yellow;
11
+ margin-bottom : 0.5rem ;
12
+ padding : 0.5rem ;
13
+ }
2
14
3
- div : hover {
4
- color : green ;
15
+ a : link {
16
+ color : aqua ;
5
17
}
6
18
7
- .header : hover {
8
- color : white;
9
- background : blue;
10
- letter-spacing : 5px ;
19
+ a : visited {
20
+ color : red;
11
21
}
12
22
13
23
a : hover {
14
- text-decoration : none;
15
- font-size : 20px ;
16
- background : fuchsia;
24
+ color : green;
25
+ }
26
+
27
+ a : active {
28
+ color : fuchsia;
17
29
}
You can’t perform that action at this time.
0 commit comments