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" "">
<html xmlns="">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="some.css" />
	<title>Some Title</title>
	<div id="page">
		<br />
		<br />
		<table id="table1" class="center">
					<iframe id="iframe1" src="anotherpage.html"></iframe>
					Static Text Here<br />

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!

Keve Nagy * Debrecen * Hungary

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