DOCTYPE scope

D

dorayme

Denis McMahon said:
Yes, the content of an iframe can have it's own DOCTYPE.

An iframe can contain content from another server that you have no
control over. If your document is html4 transitional, and loads an iframe,
the content of a document loaded in the iframe might be html4 strict,
html4 frameset, xhtml1.*, html 5, or anything else that has a valid
doctype as long as it's served with the right doctype for what it
contains.


Yes, yes, well and good, but does Hot-Text write in a language other
than English and use a computer translation device?
 
H

Hot-Text

Denis McMahon said:
Yes, the content of an iframe can have it's own DOCTYPE.

An iframe can contain content from another server that you have no
control over. If your document is html4 transitional, and loads an iframe,
the content of a document loaded in the iframe might be html4 strict,
html4 frameset, xhtml1.*, html 5, or anything else that has a valid
doctype as long as it's served with the right doctype for what it
contains.

Rgds

It Not on the same Web-Page..
For Iframe is HTML a Transitional Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
because it's have HTML with the Iframe on the same page..

For in the Iframe Window it can have it own DOCTYPE
But if you valid your web-Page,
it will not valid the Code in Iframe Window,
Because it not on the same page..


Here a iframe on the same server..
< http://hot-text.ath.cx/ >

Validation Output is not always right........
 
J

Jukka K. Korpela

2012-08-11 10:29 said:
An iframe can contain content from another server that you have no
control over. If your document is html4 transitional, and loads an
iframe, the content of a document loaded in the iframe might be html4
strict, html4 frameset, xhtml1.*, html 5, or anything else that has a
valid doctype as long as it's served with the right doctype for what
it contains.
[...]
It Not on the same Web-Page.. For Iframe is HTML a Transitional Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
because it's have HTML with the Iframe on the same page..

Wrong. The doctype of the embedding document has no impact on the
doctype of the embedded document. This applies to all kinds of
embedding, including <iframe>, <frame>, and <object>. The embedded
document need not be an HTML document at all, and if it is, it can have
any doctype (including Frameset doctypes).

Besides, the doctype you gave does not conform to HTML specifications,
and it triggers Quirks Mode on IE.

So what Denis wrote is correct. It needs to be noted, however, that the
requirement "it's served with the right doctype for what it contains" is
mostly theoretical. Apart from triggering Quirks, Standards, or Almost
Standards mode, the doctype has no impact on browser behavior
 
B

Beauregard T. Shagnasty

dorayme said:
Yes, yes, well and good, but does Hot-Text write in a language other
than English and use a computer translation device?

Hot-Text (or any of his several other nyms) uses a random word generator.
Has for years, and is why he resides in many killfiles...
 
H

Hot-Text

Jukka K. Korpela said:
2012-08-11 10:29 said:
An iframe can contain content from another server that you have no
control over. If your document is html4 transitional, and loads an
iframe, the content of a document loaded in the iframe might be html4
strict, html4 frameset, xhtml1.*, html 5, or anything else that has a
valid doctype as long as it's served with the right doctype for what
it contains.
[...]
It Not on the same Web-Page.. For Iframe is HTML a Transitional Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
because it's have HTML with the Iframe on the same page..

Wrong. The doctype of the embedding document has no impact on the
doctype of the embedded document. This applies to all kinds of
embedding, including <iframe>, <frame>, and <object>. The embedded
document need not be an HTML document at all, and if it is, it can have
any doctype (including Frameset doctypes).

Besides, the doctype you gave does not conform to HTML specifications,
and it triggers Quirks Mode on IE.

So what Denis wrote is correct. It needs to be noted, however, that the
requirement "it's served with the right doctype for what it contains" is
mostly theoretical. Apart from triggering Quirks, Standards, or Almost
Standards mode, the doctype has no impact on browser behavior

a Frameset

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">

<html>
<head>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<meta name="description" content="Hot Text!">
<meta name="keywords" content="Classified">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<title>Hot-Text quit get pege</title>
<script type="text/javascript">
<!--
// Hidden form Brower
alert('This WebSite is in Frames\n\n GENERATOR: by me\n Denis McMahon')
// -->
</script>
</head>
<frameset framespacing="7" cols="21%,*">
<frame src="frame/new_page_2.htm" scrolling="yes" name="menu" target="_self">
<frameset rows="30%,69%">
<frame src="frame/banner.html" scrolling="auto" name="banner" target="_self">
<frame src="index2.html" scrolling="auto" name="Korpela">
</frameset>
<noframes>
<body topmargin="1" leftmargin="1" style="border: 7 groove #800080">
<p align="center"><img border="0" src="favicon.bmp" width="64" height="64"></p>
<p align="center">&nbsp;This WebPages is made in Frames.</p>
<p align="center">For Internet Explorer 4.0 and Up.</p>
<p align="center">&nbsp;all kinds of embedding, including <iframe>, and <object> go here only.</p>
</body>
</noframes>
</frameset>
</html>
 
H

Hot-Text

Who care if a another server if it have a DOCTYPE or not,

For a iframe is on your Webpage,
and it's your page that need the DOCTYPE,
not that which is in the iframe,
and why would you care for the Image in the iframe for,
An iframe is used to display a web page within a web page...
Yes, yes, well and good, but does Hot-Text write in a language other
than English and use a computer translation device?

dorayme DOCTYPE in other language other than English...

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>I-frame Test</title>
</head>
<body>
<center><b><font face="Arial,Helvetica"><font color=
"#0000FF"><font size="+4">An I-frame Test Page</font></font>
<font color="#FF0000"><font size=
"+3">
HTML:
</font></font></font></b></center>
<p><br></p>
<p><font color="#000000"><br>
<font face="Arial,Helvetica">This page demonstrates the use of a
Ifame with Webpage. <br>
In the HTML form below,<br>
Click on the "Link" to send the data to the Ifame. <br>
This version uses a<br>
doctype html public "-//w3c//dtd html 4.0
transitional//en</font><br>
 </font></p>
<p><font color="#000000">Webpage:<br>
<a href="http://www.bing.com/search?q=ifame&form=OPRTSD&pc=OPER"
target="shit">Bing</a>Â Â  <a href=
"http://search.yahoo.com/search?q=ifame&form=OPRTSD&pc=OPER"
target="shit">Yahoo</a>Â Â  <a href=
"http://www.w3schools.com/html/html_iframe.asp" target=
"shit">w3schools</a></font></p>
<p><font color="#000000"><br>
<iframe border="0" width="100%" height="85%" name="shit" id=
"shit"> </iframe></font></p>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top