Penguin
Blame: RealWorldWebCompliance
EditPageHistoryDiffInfoLikePages
Annotated edit history of RealWorldWebCompliance version 15, including all changes. View license author blame.
Rev Author # Line
9 JohnMcPherson 1 This page is designed to tell commercial web developers why they should develop StandardsCompliant web pages.
2
10 AristotlePagaltzis 3 !! Why should I make my web site compliant?
9 JohnMcPherson 4
10 AristotlePagaltzis 5 Because the IT department of your biggest clients are [changing|http://www.theregister.co.uk/2004/06/28/cert_ditch_explorer/] [away|http://slashdot.org/articles/04/07/02/1441242.shtml] from InternetExplorer in droves. [Windows] users tend towards MozillaFirefox or [Opera], Mac users may be using MozillaCamino or [Safari]. Linux users have probably been using [Mozilla] forever.
9 JohnMcPherson 6
7 The percentage of people using a non-IE browser is estimated to be between 5% and 15%, depending on who you ask. You wouldn't tolerate a phone system or secretary that turned away 10% of potential customers who ring you...
8
10 AristotlePagaltzis 9 !! Dos and don'ts
9 JohnMcPherson 10
10 AristotlePagaltzis 11 * __Don't__ create browser detection pages that lock out browsers you think won't work, or browsers you don't recognise. New browsers and versions come out all the time, and you never know when one of them will be fixed.
12 AristotlePagaltzis 12
10 AristotlePagaltzis 13 * Don't use markup purely because its default display suits what you want. Use markup that's suitable to the content, then style it using [CSS], instead.
12 AristotlePagaltzis 14
10 AristotlePagaltzis 15 * Don't test your [CSS] padding/margin/width settings by only testing in IE.
12 AristotlePagaltzis 16
10 AristotlePagaltzis 17 * Do test your [HTML] pages against http://validator.w3.org/ (or the free [sgmlnorm | http://openjade.sourceforge.net/doc-1.5.1/sgmlnorm.htm] program).
12 AristotlePagaltzis 18
19 * Don't put stuff in a table without <tt><td></tt> tags around it ([IE] displays it, [Mozilla] might not).
20
10 AristotlePagaltzis 21 * Don't put tooltips in the <tt>alt</tt> attribute. They belong in <tt>title</tt>.
12 AristotlePagaltzis 22
23 Put an empty <tt>alt</tt> attribute on your images as a rule of thumb. Only contain when the image actually replaces part of a sentence or is otherwise part of the text should the <tt>alt</tt> attribute contain any text, which should be what the image replaces. Imagine your content being read aloud: would the content <tt>alt</tt> attribute make sense as part of the text? If not, its alternative text should be empty. This means decorative and even illustrative images should not containt alternative text.
24
13 AristotlePagaltzis 25 * Be careful with your comments: <tt><! ></tt> by themselves delimit a __declaration block__, and the <tt>--</tt> double dashes can be used to open and close comments inside such a block. This means:
12 AristotlePagaltzis 26
10 AristotlePagaltzis 27 * Don't use <tt><!--</tt> and <tt>--></tt> in <tt><script></tt> tags without making sure they are matched. InternetExplorer won't care, but [Mozilla] will consider the rest of your page commented out.
12 AristotlePagaltzis 28
13 AristotlePagaltzis 29 * The popular <tt><!----------></tt> style "separators" are dangerous. With any numbers of dashes that is not a multiple of four, you will leave an open comment section around, so the rest of your page will be commented out.
12 AristotlePagaltzis 30
13 AristotlePagaltzis 31 * Using <tt>--</tt> inside a comment actually closes it. The rest of what was supposed to be a comment will spill into your page. Best to only use double dashes at the start and end of the comment and avoid any more than space-separated single dashes altogether inside it.
12 AristotlePagaltzis 32
15 CraigBox 33 * Don't use <tt>document.all</tt> in your JavaScript. Also, don't use <tt>element.innertext</tt>, use innerHTML instead.
12 AristotlePagaltzis 34
15 CraigBox 35 * Don't use MSXMLDOC.
9 JohnMcPherson 36
14 CraigBox 37 See a [great guide on the specifics | http://nexgenmedia.net/evang/iemozguide/] and the [Mozilla Web Author FAQ | http://www.mozilla.org/docs/web-developer/faq.html]. IBM have also [migrating web apps from IE to Mozilla|http://www-128.ibm.com/developerworks/web/library/wa-ie2mozgd/]
9 JohnMcPherson 38
10 AristotlePagaltzis 39 !! Should I support Netscape any more?
9 JohnMcPherson 40
41 If you support [Mozilla], you're supporting Netscape 7 and up. These days it's realistic to drop support for any version of Netscape 4 or below.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 8 times)