(Follow-up of the demo The color of your name, for explanation see over there.)
Other doctype variants: HTML 4.01 Transitional, HTML 4.01 Strict, XHTML 1.0 Transitional, HTML 5.
The deprecated codes are spotted by the HTML-validator also this time:
54 errors because
of deprecated attributes and elements: "there is no attribute 'bgcolor'", "element 'font' undefined". **)
The css-validator is still giving
Congratulations!
No Errors Found; for the errors are still in the html, not in the css.
But all 54 in the html given colornames for text and background colors are invalid colornames: they don't exist as colornames;
see the list of valid color names over here.
In spite of this all browsers ***) compensate the errors by their internal Error Handling, and are showing the phantasy colors
for the non-existing colornames again:
table header |
||
|---|---|---|
| row 1, cel 1 | row 1, cel 2 | row 1, cel 3 |
| row 2, cel 1 | row 2, cel 2 | row 2, cel 3 |
bgcolor="..." and text="..." in the
<body> tag.bgcolor="..." in the table tags <table>,
<tr>, <td> and <th>.color="..." in a <font> tag.<body> attributes link="...", alink="..."
and vlink="...", except in Chrome and Safari (see below).
<body bgcolor="ffffancy" text="fresh young yellow" link="batman" alink="workinghero" vlink="long ago"> |
link="batman" (which is
███ in other browsers),alink="workinghero" for
an active link (which is ███ in other browsers),vlink="long ago" for
a visited link (which is ███ in other browsers),______________
*) The main code is coming from a W3C
deprecated example in the official
html 4.01 specification of december 1999.
Added is a table with also deprecated codes in it.
**) HTML-Tidy in Firefox is also aware of the shortage: a warning for the same 54 invalid color values.
***) Firefox 23/25, Chrome 30, Opera 12/17, Safari-Win (5.1.7) and Internet Explorer 7 and 10; all on desktop/laptop under Windows.
IE8 and IE9 look good in Netrenderer.