Forum Moderators: open
I know the <body> element within <noframes> is not required, funny thing is, it still validates either way:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Untitled</title>
<meta name="Description" content="">
<meta name="keywords" content="">
<link rel="stylesheet" type="text/css" href="">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<frameset rows="50%,*">
<frame src="">
<frame src="">
<noframes>
<body>
<p>Don't just say your browser doesn't support
frames. Put content here.</p>
</body>
</noframes>
</frameset>
</html>
Validated in XHTML too, not doing any extending and target server doesn't output text/xhtml headers, don't need XHTML.
Pro with no body: 15 characters less, including newlines.
Pro with body: CSS styles will still apply to the <noframes> content (probably . . . .)
What do you think? I searched, found mixed opinions . . . .