fix(curriculum): Remove :target-within in notes and change question in quiz (#63834)

This commit is contained in:
Diem-Trang Pham
2025-11-14 11:59:28 -06:00
committed by GitHub
parent 73d55e0bcf
commit c07461c08b
3 changed files with 4 additions and 6 deletions
@@ -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.
@@ -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--
@@ -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