From the course: Vibe Coding Common Web Patterns into Tailwind CSS
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Accessibility in AI-generated code
From the course: Vibe Coding Common Web Patterns into Tailwind CSS
Accessibility in AI-generated code
- [Instructor] Great Devs write code that works for everyone. So writing accessible code isn't extra work, it's doing the correct work. If accessibility is a new concept to you, there are plenty of courses on LinkedIn Learning. Accessibility ensures that your code is usable by everyone, including people with disabilities. Now, like much of the course, I'll ask AI to help out here. I'm going to provide the components directory as context and I'll ask Copilot if these files are accessible. Of course, this is placeholder content, so it's a little ambiguous anyway, but let's see what Copilot comes up with. It seems to like the code that it wrote. I want to look at the LogoCloud. And again, this is placeholder content. The images do have alt text. It's great. It's not very descriptive. So I'm going to dig in a little further. This is a quasi programming question, so it's something fair to ask Copilot. "Why is AI bad at creating accessible markup?" Copilot notes a few things. But first, in…