From the course: HTML, CSS, and JavaScript: Building the Web

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Document accessibility

Document accessibility

- [Instructor] Let's focus on document accessibility and how to make our content more inclusive. Accessibility ensures that all users, including those with disabilities, can access and interact with our webpage. Using attributes like alt for images provides text descriptions that screen readers can use to describe the images to visually impaired users. We'll add the alt attribute in the image tags. Here, it'll provide a text description of the image. As you see, I've added the alt attribute to the image tags, and I've given them a little description of what they look like. This is useful for accessibility because screen readers use this text to describe the image to visually impaired users. It also helps search engines understand the content of the image. If you're wondering how I ended up writing these descriptions about the images, just look at the image itself. I have one little green plant here, and this other image seems to look like some sort of succulent, so let's go ahead and…

Contents