Giter VIP home page Giter VIP logo

a11y.css's Introduction

a11y.css · Open Source Love GitHub license jsDelivr Hits

How it works?

The CSS file detects the accessibility and syntactical errors and highlights it on the website.

Steps to follow

  1. Link CSS file to your code
    <link
      href="https://cdn.jsdelivr.net/gh/salil-naik/a11y.css/a11y.css"
      rel="stylesheet"
      type="text/css"
    />
  2. Solve the errors based on the suggestions given
  3. Remove or comment the CSS file

Understanding the error highlights

A11y Errors

A11Y errors will be highlighted with red colored text. The border of the highlighted elements will be turned black in color.

Syntactical Errors

Syntactical errors will be highlighted with yellow-orange colored text. The border of the highlighted elements will be turned black in color;

Image errors

Two image errors will be highlighted.

  1. Missing or empty alt attribute
    This error will be highlighted by a black border around the image
  2. Missing height and width attributes This error will be highlighted by a blured layer over the image

Demos

  1. Demo 1
  2. Demo 2
  3. Demo 3

What is accessibility and why is it important?

Read my blog post on Dev.to


Will this make my website 100% accessible?

No, there is no such thing as 100% accessible website. a11y.css will try to make the website as error free as possbile. In addition to using a11y.css, we recommend you to go through A11Y Checklists by a11yproject.com


Resources & Learning material

Title (with link) Author/Publication
What is Accessibility and why is it important? Salil Naik
Accessibility - Material Design Material.io
Web Content Accessibility Guidelines (WCAG) 2.1 W3C
Web Accessibility Podcasts Roundup Digital Ally by Raghavendra Satish Peri
Accessibility Tips for Web Developers Dev.to by Addy Osmani
A11Y — Making web accessibility easier Thought Works
8 tools that make accessible design easier InVision

Spam

a11y.css's People

Contributors

salil-naik avatar aallexmihai avatar d-coder22 avatar gabbyj avatar weberjacob avatar neondevil avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.