CSS Validator

Open Source

by W3C Validators

Provided by W3C Validators

Not yet rated
Platform
Web / API
Pricing
Open Source
Account required
No
Ads
None
Last verified
20 hours ago
Developer
W3C Validators
Official URL

Overview

The W3C CSS Validation Service is the World Wide Web Consortium's free checker for style sheets. It reads your CSS, compares it against the CSS specifications and lists the errors and warnings it finds, so you can catch typos, invalid properties and values before they cause layout problems.

There are three ways to submit work: give the address of a page or style sheet, upload a file, or paste CSS straight into a text box. Options let you pick the profile to check against (CSS levels 1 to 3, SVG, mobile and TV profiles), the target medium, how many warnings to show and how vendor extensions should be treated. The interface is translated into about 21 languages.

The validator is open-source Java software hosted on GitHub. You can download it and run it from the command line or as a servlet, and there is a web service interface for calling it from other programs; W3C asks automated users to pause between requests or run their own copy. W3C also points out that the tool has known bugs and that the specifications, not the validator, are the final authority.

Features

  • Validate by URL, file upload or direct text input
  • Profiles for CSS level 1, 2, 2.1 and 3, plus SVG, mobile and TV
  • Choice of target medium such as screen or print
  • Adjustable warning level, from all warnings to none
  • Vendor extensions can be treated as default, warnings or errors
  • Interface in about 21 languages
  • Downloadable to run locally from the command line or as a servlet
  • Web service interface for automated checks

Privacy

See the official privacy policy. The software is open source and can be installed and run locally, which keeps style sheets off the shared service.

Pros & Cons

Pros

  • Free, with no account and no advertising
  • Run by the organisation that publishes the CSS standards
  • Open source and can be self-hosted
  • Three input methods cover live sites and unpublished work

Cons

  • Has known bugs and can lag behind newer CSS features
  • Reports can be noisy for style sheets with many vendor prefixes
  • Plain, dated interface
  • Shared service should not be hammered by scripts; heavy users need their own install

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Provides tips, tricks, and reference guides for CSS.

    Not yet rated
    Free Web
  • Removes unused CSS from a project to reduce file size.

    Not yet rated
    Open Source Web
  • CSS · cssnano

    Minifies CSS as part of a PostCSS build pipeline.

    Not yet rated
    Open Source Web