Add Subject Here

Hello Mailing List,
I run into a little confusion using the W3 HTML Validator today and thought to ask what you think about this.
Consider the sample html code below:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="some.css" />
	<title>Some Title</title>
</head>
<body>
	<div id="page">
		<br />
		<br />
		<table id="table1" class="center">
			<tr>
				<td>
					<iframe id="iframe1" src="anotherpage.html"></iframe>
				</td>
			</tr>
			<tr>
				<td>
					Static Text Here<br />
				</td>
			</tr>
		</table>
	</div>
</body> 
</html>

The validator reports 3 Errors in this, all 3 in the IFRAME line.
1., there is no attribute "id"
2., there is no attribute "src"
3., element "iframe" undefined

If I change the DTD to xhtml 1.0 transitional, the same html code validates without errors.
Shouldn't this html code be also validated with the "xhtml 1.0 strict" DTD?
Is there any particular reason an IFRAME tag is not allowed in an "xhtml 1.0 strict" document body?

I am not subscribed to the mailing list. Please CC me directly as keve(at)safe-mail(dot)net!

Regards,
Keve Nagy * Debrecen * Hungary

Received on Monday, 8 December 2014 17:52:12 UTC