DEV Community

DCT Technology Pvt. Ltd.
DCT Technology Pvt. Ltd.

Posted on

3 1 1

Common Accessibility Issues in Web Apps (And How to Fix Them)

When was the last time you tested your web app with a keyboard only? Or ran a screen reader to check if your UI made any sense without visuals?

Most developers don’t realize they’re unintentionally building digital barriers that shut out millions of users — and that means you're also shutting down your growth, conversions, and brand reputation.

Let’s fix that. 👇

Image description

🔍 1. Missing Alternative Text for Images

Images without proper alt text are useless for screen readers.

This is one of the most common accessibility violations and also the easiest to fix.

Fix it:

<!-- Bad -->
<img src="product.jpg">

<!-- Good -->
<img src="product.jpg" alt="Black leather office chair with armrests">
Enter fullscreen mode Exit fullscreen mode

💡 How to write good alt text (W3C)


⌨️ 2. Keyboard Navigation Isn't Working Properly

Can your users tab through your site smoothly? If not, you're locking out users who rely on keyboards or assistive technologies.

Fix it:

  • Ensure all interactive elements (like buttons, links, modals) are focusable.

  • Use :focus-visible to style elements clearly during tab navigation.

  • Avoid using elements that hijack keyboard events.

button:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}
Enter fullscreen mode Exit fullscreen mode

🚀 Bonus tool: WebAIM's Keyboard Accessibility Checklist


🧩 3. Low Color Contrast

If users can’t read your text, it doesn’t matter how “on-brand” your colors are.

Fix it:

  • Aim for a minimum contrast ratio of 4.5:1 between text and background.

  • Use tools like Contrast Checker to test your colors.

/* Avoid light grey text on white backgrounds */
color: #6b7280; /* Better */
Enter fullscreen mode Exit fullscreen mode

📢 4. No ARIA or Semantic Elements

If your site relies only on <div> and <span>, screen readers might struggle to understand the layout.

Fix it:

  • Use semantic HTML5 tags like <nav>, <main>, <header>, <footer>, etc.

  • Where needed, add ARIA roles like role="dialog" or aria-live="polite".

🧠 Learn more: MDN Web Docs - ARIA roles


📱 5. Not Responsive or Zoom-Friendly

Accessibility is not just about screen readers — it's also about layout adaptability.

Fix it:

  • Use relative units like em, rem, % instead of px.

  • Ensure text and layout don’t break when zoomed to 200%.

html {
  font-size: 100%; /* respect user settings */
}
Enter fullscreen mode Exit fullscreen mode

🧪 Responsive Design Principles - Google Developers


🔊 6. No Focus Traps in Modals

Ever opened a modal and couldn’t escape it with the keyboard? That’s a focus trap failure.

Fix it:
Use libraries like Focus Trap or manage focus manually when opening/closing modals.

modal.addEventListener('keydown', (e) => {
  if (e.key === 'Tab') {
    // handle focus wrap logic
  }
});
Enter fullscreen mode Exit fullscreen mode

✅ 7. No Accessible Form Labels

Placeholder text ≠ label. Screen readers skip placeholders, and that’s a problem.

Fix it:


html
<!-- Bad -->
<input type="email" placeholder="Your email">

<!-- Good -->
<label for="email">Email Address</label>
<input type="email" id="email" name="email">


## 📣 Final Thought: Accessibility is Not Optional

Web accessibility isn’t just a “nice to have” — it’s a **requirement** that improves usability for *everyone*. 


You don’t have to be an expert overnight, but you do have to start somewhere.

Every improvement makes a difference. Every inclusive line of code counts.

---

👀 Found this helpful? Want more posts like this?

👉 Follow **[DCT Technology](WWW.DCTINFOTECH.COM)** for real-world insights on **Web Development**, **UI/UX**, **SEO**, and **Tech Consulting** that actually *move the needle*.

Let’s build better, together. 💙

---

#accessibility #webdevelopment #frontend #uxdesign #seo #javascript #reactjs #a11y #html #css #techcommunity #devto #inclusiveweb #dcttechnology
Enter fullscreen mode Exit fullscreen mode

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Postmark Image

20% off for developers who'd rather build features than debug email

Stop wrestling with email delivery and get back to the code you love. Postmark handles the complexities of email infrastructure so you can ship your product faster.

Start free

👋 Kindness is contagious

Dive into this insightful write-up, celebrated within the collaborative DEV Community. Developers at any stage are invited to contribute and elevate our shared skills.

A simple "thank you" can boost someone’s spirits—leave your kudos in the comments!

On DEV, exchanging ideas fuels progress and deepens our connections. If this post helped you, a brief note of thanks goes a long way.

Okay