The QA style sheet looks for a new owner. Please contact Jens.
The QA style sheet highlights specific HTML problems like use of deprecated elements, inaccessible images, layout tables, empty elements, or styling-related maintenance issues. Theoretically, it is “unobtrusive” in a sense that when everything’s fine it won’t cause any visible changes.
-
Use it on demand as a bookmarklet: Add the bookmarklet or favelet, respectively, to your bookmarks and access it when needed. When customizing the style sheet better compress it, generate a new bookmarklet, but make sure to add
%20newSS.id%20=%20'x-qa';
to the bookmarklet code to avoid false positives when it comes to style sheet references on a page (this assumes you’re keeping the#x-qa
selector in the QA style sheet, too). -
Temporarily import the style sheet in your project’s default style sheet. Do not forget to remove the style sheet reference after testing.
-
Use it permanently as a user style sheet with your browser (userContent.css for Gecko browsers). For more information please see documentation at CSS-Discuss or at About.com. It’s easy though.
The style sheet is supported differently across browsers as it makes some use of CSS 3 selectors, and when it comes to warnings for images, at least Internet Explorer might display errors that must not necessarily be there. To get the most of the QA style sheet test the respective pages with recent releases of Firefox, Safari, Chrome, or Opera.
While Eric Meyer once published a comparable style sheet, this QA style sheet has a slightly different scope. It spots the following problems, indicated in yellow (warning) and red (error) assuming a modern browser:
- Errors:
- deprecated elements like
applet
,basefont
,center
,dir
,font
,isindex
,menu
,spacer
, orstrike
; - layout tables (nested tables, to be precise);
- images (
img
elements) without anyalt
attribute; - anchors with an empty
href
attribute thus pointing to nothing; style
attributes.
- deprecated elements like
- Warnings:
- images with an empty
alt
attribute; - anchors linking GIF, JPG, or PNG images as well as PDF documents;
- empty
p
,li
,th
,td
,div
, andspan
elements unless they’re using anid
attribute; style
elements;- more than one
link
elements withrel=stylesheet
attribute.
- images with an empty
The style sheet is unmaintained (as of November 29, 2024). Contributions welcome.