Skip to primary navigation Skip to main content
US flag signifying that this is a United States Federal Government website An official website of the United States Government USDA United State Department of Agriculture Farm Production and Conservation

CSS Dependence

CSS dependence just means site shouldn't rely on CSS to be functional or understandable.

Often sites will use CSS to load important images for example. This is bad for several reasons. Background images can’t be tagged for accessibility and with CSS turned off they aren’t shown.

The other issue that pops up with CSS dependence is content order. Sometimes, content will be arranged on screen with CSS instead of the natural code flow.

Testing

  1. Disable CSS.
  2. Check for missing information (images, text, etc.).
  3. Check for code or other items the developer doesn’t want you to see.
    • Confusing elements shouldn’t be present such as CSS, JavaScript, or other code, etc.
  4. Check for overlapping text.

Demo

Click the button below to remove styles from this page. Note how all content is accessible by being clearly structured and understandable without styles.

Return to top