(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, XHTML 1.0 Strict.
The deprecated codes are spotted by the HTML-validator also this time:
54 errors: all
obsolete elements or attibutes. **)
The css-validator is still giving
Congratulations!
No Errors Found; for the errors are still in the html, not in the css.
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.
Whereas in html-4.01 or xhtml-1.0 you can use deprecated elements/attributes (with the forgiving Transitional doctype),
in html-5 the obsolete is on the brink of the abyss:
In spite of this, all browsers ***) of this moment still show the phantasy colors for the non-existing colornames:
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: the same 54 obsolete elements/attributes.
***) 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.