I was just checking to see if the element was actually placed <iframe>inside the element <noscript>as a return to display dynamic content. It worked well with an HTML 5 document, but for HTML 4.01 I get the following error:
Row 9, column 35: IFRAME element undefined
<iframe name = "test" src = "test.htm"> </iframe>
You used the element indicated above in your document, but the type of document you use does not define an element of this name. This error is often caused by:
- incorrect use of the document type "Strict" with a document that uses frames (for example, you must use the document type "Frameset" to get the element "),
- using native provider extensions such as “or” (this is usually fixed using CSS to achieve the desired effect).
- Using uppercase tags in XHTML (XHTML attributes and elements must all be lowercase).
Here is what I twisted the HTML to:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>I AM YOUR DOCUMENT TITLE REPLACE ME</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div>
<iframe name="test" src="test.htm"></iframe>
</div>
</body>
</html>
An element is <iframe>defined in the HTML 4.01 specification at the following URL: http://www.w3.org/TR/html401/present/frames.html#h-16.5 .
It runs with a transitional doctype, so I think my question is: "Why is it forbidden in a strict doctype, even if it is defined in the specification?".