mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 10:22:16 +00:00
fix(curriculum): correct grammar in lecture-accessible-media-elements (#67508)
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ You should write something like this instead, where the `alt` text describes wha
|
||||
|
||||
Only images that convey important information should have `alt` text. If an image is only used for decorative purposes, it should have `null` (empty) `alt` text, so it can be ignored by screen readers and other assistive technologies.
|
||||
|
||||
Here is an example of an empty `alt` attribute is empty:
|
||||
Here is an example of an empty `alt` attribute:
|
||||
|
||||
```html
|
||||
<img src="decorative_image.jpg" alt="" />
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ Now, here is an example of good link text:
|
||||
|
||||
This link text gives users context about the content they will find, making it easier to decide whether they want to click on it. It reduces ambiguity by specifying that the link is related to a webinar.
|
||||
|
||||
Here is an another example linking to a post in a blog:
|
||||
Here is another example linking to a post in a blog:
|
||||
|
||||
```html
|
||||
<a href="/blog-post-link">Read more</a>
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ A video is not just about visuals but also audio, so the first thing you should
|
||||
|
||||
Captions provide the text version of spoken words and important non-verbal sounds, like music or laughter, synchronized with the video.
|
||||
|
||||
Subtitles on the other hand are essential for people who don't understand the language you're speaking. This helps not only people who are deaf or hard of hearing but also those watching videos in noisy or quiet environments.
|
||||
Subtitles, on the other hand, are essential for people who don't understand the language you're speaking. This helps not only people who are deaf or hard of hearing but also those watching videos in noisy or quiet environments.
|
||||
|
||||
To add captions or subtitles to your video or audio content, you can use the `track` element inside your `video` or `audio` element:
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ Let's look at some practical techniques you can employ to make web applications
|
||||
|
||||
Many users rely on the `Tab` key to move through interactive elements on a webpage. By default, browsers let users tab through elements like links, buttons, and form fields in the order they appear in the HTML. This is called the natural tab order.
|
||||
|
||||
Sometimes, you may want to adjust which elements are focusable or change their focus order. The `tabindex` attribute allows you do this.
|
||||
Sometimes, you may want to adjust which elements are focusable or change their focus order. The `tabindex` attribute allows you to do this.
|
||||
|
||||
Here is the basic syntax:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user