Can anybody shed some light on this, please. I just validated a page & got some confusing results.
Here’s the first:
Line 6, column 5: document type does not allow element “HTML” here (explain…).
<html>
Here’s the source code:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“
<meta http-equiv=”content-type” content=”text/html; charset=ISO-8859-1″>
<html>
<head>
My best guess here is that if you use a doctype statement that includes “html” the actual <html> tag is not needed.(?)
Second thing I don’t understand:
Line 43, column 162: end tag for element “FONT” which is not open (explain…).
…FONT COLOR=black SIZE=2>”+msg+”</FONT></TD></tr></TABLE>”;
This is repeated for each of the closing tags, including the /table tag. Is this just because those tags aren’t necessary? That can’t be… how can you get away with not closing a table? I expect it has something to do with the javascript, but I’m clueless in that area.
Here is the code:
var content=”<TABLE WIDTH=180 BORDER=1 BORDERCOLOR=red CELLPADDING=2 CELLSPACING=0 “+”BGCOLOR=”+bak+”><tr><TD ALIGN=center><FONT COLOR=black SIZE=2>”+msg+”</FONT></TD></tr></TABLE>”;
TIA for whatever help you can give.