Skip to content

Commit a7f3b97

Browse files
authored
fix(curriculum): Add interactive examples for CSS chapter review page (freeCodeCamp#65388)
1 parent c860041 commit a7f3b97

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

curriculum/challenges/english/blocks/review-css/671a9a0a140c2b9d6a75629f.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ challengeType: 31
55
dashedName: review-css
66
---
77

8-
# --description--
8+
# --interactive--
99

1010
Review the concepts below to prepare for the upcoming exam.
1111

@@ -432,11 +432,15 @@ In the above example, smooth scrolling is enabled if the user doesn't have anima
432432
- **`aria-hidden` attribute**: Used to hide an element from people using assistive technology such as screen readers. For example, this can be used to hide decorative images that do not provide any meaningful content.
433433
- **`hidden` attribute**: This attribute is supported by most modern browsers and hides content both visually and from the accessibility tree. It can be easily toggled with JavaScript.
434434

435+
:::interactive_editor
436+
435437
```html
436438
<p aria-hidden>This paragraph is visible for sighted users, but is hidden from assistive technology.</p>
437439
<p hidden>This paragraph is hidden from both sighted users and assistive technology.</p>
438440
```
439441

442+
:::
443+
440444
## Accessibility Issue of the `placeholder` Attribute
441445

442446
Using placeholder text is not great for accessibility. Too often, users confuse the placeholder text with an actual input value - they think there is already a value in the input.

0 commit comments

Comments
 (0)