mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): Remove :target-within in notes and change question in quiz (#63834)
This commit is contained in:
-1
@@ -16,7 +16,6 @@ Examples of location pseudo-classes are:
|
||||
- `:any-link`
|
||||
- `:local-link`
|
||||
- `:target`
|
||||
- `:target-within`
|
||||
|
||||
Let's take a deeper look at each of these pseudo-classes.
|
||||
|
||||
|
||||
+4
-4
@@ -699,7 +699,7 @@ Which pseudo class represents links that point to the same document?
|
||||
|
||||
---
|
||||
|
||||
`:target-within`
|
||||
`:visited`
|
||||
|
||||
---
|
||||
|
||||
@@ -751,7 +751,7 @@ p:target {
|
||||
|
||||
#### --text--
|
||||
|
||||
Which pseudo-class selects an element when it or one of its descendants is the target of a URL fragment?
|
||||
Which pseudo-class is used when an element is the target of a URL fragment?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
@@ -759,7 +759,7 @@ Which pseudo-class selects an element when it or one of its descendants is the t
|
||||
|
||||
---
|
||||
|
||||
`:target`
|
||||
`:hover`
|
||||
|
||||
---
|
||||
|
||||
@@ -767,7 +767,7 @@ Which pseudo-class selects an element when it or one of its descendants is the t
|
||||
|
||||
#### --answer--
|
||||
|
||||
`:target-within`
|
||||
`:target`
|
||||
|
||||
### --question--
|
||||
|
||||
|
||||
-1
@@ -37,7 +37,6 @@ dashedName: review-css-pseudo-classes
|
||||
- **`:local-link` Pseudo-class**: This pseudo-class targets links that point to the same document. It can be useful when you want to differentiate internal links from external ones.
|
||||
- **`:visited` Pseudo-class**: This pseudo-class targets a link the user has visited.
|
||||
- **`:target` Pseudo-class**: This pseudo-class is used to apply styles to an element that is the target of a URL fragment.
|
||||
- **`:target-within` Pseudo-class**: This pseudo-class applies styles to an element when it or one of its descendants is the target of a URL fragment.
|
||||
|
||||
## Tree-structural Pseudo-classes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user