M
Mark Rae
Hi,
Firstly, I have not the slightest intention of using framesets - the reason
for this post is merely to ask for assistance in furthering my understanding
of XHTML.
I was under the impression that XHTML fully supports framesets, hence the
Frameset document type. Therefore, can anyone please tell me why the
following markup doesn't validate correctly in VS.NET 2005?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test Frameset</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
<meta name="CODE_LANGUAGE" content="C#" />
<meta name="vs_defaultClientScript" content="JavaScript"/>
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
</head>
<frameset rows="100%">
<frame id="fraContent" />
</frameset>
</html>
There's a red IntelliSense underline beneath the <html> tag which says:
Cannot switch views: Validation (XHTML 1.0 Transitional): Element 'body'
occurs too few times.
I was under the impression that either a <frameset> or a <body> tag were
permitted, but not both...
There's a red IntelliSense line beneath the <frameset> tag which says:
Validation (XHTML 1.0 Transitional): Element 'frameset' is not supported.
There's a red IntelliSense line beneath the <frame> tag which says:
Validation (XHTML 1.0 Transitional): Element 'frame' is not supported.
However, according to http://validator.w3.org/, the above is perfectly
valid.
Can anyone please tell me why VS.NET 2005 is saying that the markup isn't
valid, if there's anything I can do about it, or if I can safely ignore the
validation errors.
Any assistance gratefully received.
Mark
Firstly, I have not the slightest intention of using framesets - the reason
for this post is merely to ask for assistance in furthering my understanding
of XHTML.
I was under the impression that XHTML fully supports framesets, hence the
Frameset document type. Therefore, can anyone please tell me why the
following markup doesn't validate correctly in VS.NET 2005?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test Frameset</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
<meta name="CODE_LANGUAGE" content="C#" />
<meta name="vs_defaultClientScript" content="JavaScript"/>
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
</head>
<frameset rows="100%">
<frame id="fraContent" />
</frameset>
</html>
There's a red IntelliSense underline beneath the <html> tag which says:
Cannot switch views: Validation (XHTML 1.0 Transitional): Element 'body'
occurs too few times.
I was under the impression that either a <frameset> or a <body> tag were
permitted, but not both...
There's a red IntelliSense line beneath the <frameset> tag which says:
Validation (XHTML 1.0 Transitional): Element 'frameset' is not supported.
There's a red IntelliSense line beneath the <frame> tag which says:
Validation (XHTML 1.0 Transitional): Element 'frame' is not supported.
However, according to http://validator.w3.org/, the above is perfectly
valid.
Can anyone please tell me why VS.NET 2005 is saying that the markup isn't
valid, if there's anything I can do about it, or if I can safely ignore the
validation errors.
Any assistance gratefully received.
Mark