Open CITguy opened 5 years ago
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<body>
color attributes: text
, link
, vlink
, alink
, bgcolor
bgcolor
attribute: <table>
, <tr>
, <th>
, <td>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<body>
color attributes: text
, link
, vlink
, alink
, and bgcolor
(%bodycolors
DTD entity)bgcolor
attribute: <table>
, <tr>
, <th>
, <td>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
Specifically, it doesn't apply correctly to documents with a declared doctype that doesn't support CSS (e.g., HTML 3).
For example: We can't reliably apply
filter: grayscale(100%);
if the document relies ontext
,bgcolor
, or similar stylistic attributes used in HTML 3 or older.Maybe provide a warning when toggling that the doctype is too old to reliably function.