MozTW 討論區
https://forum.moztw.org/

help救救我
https://forum.moztw.org/viewtopic.php?f=13&t=5259
1 頁 (共 1 頁)

發表人:  help [ 2004-12-25, 21:32 ]
文章主題 :  help救救我

我的英文不好,請各位大大教教我
File: myhomepage.htm
Encoding: big5
Doctype: HTML 4.01 Frameset
Errors: 1
This page is not Valid HTML 4.01 Frameset!

Below are the results of attempting to parse this document with an SGML parser.

1.

Line 12, column 9: document type does not allow element "NOFRAMES" here

<noframes><body>

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

謝謝各位

發表人:  kourge [ 2004-12-25, 21:48 ]
文章主題 : 

試著將 <noframes> 改成 <noframes/> 看看

發表人:  訪客 [ 2004-12-25, 22:28 ]
文章主題 : 

你忘了用 </noframes> 收尾吧。

<frameset>
  <frame />
  <frame />

  <noframes>
   <body>

   </body>
  </noframes>
</frameset>

發表人:  help [ 2004-12-26, 11:27 ]
文章主題 : 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>無標題文件</title>
</head>

<frameset cols="25%,75%">
<frame src="left.htm" name="meun">
<frame src="right.htm" name="main">
</frameset><noframes></noframes>
<noframes><body>
</body></noframes>
</html>
再幫我看一下
有什麼錯誤
謝謝

發表人:  訪客 [ 2004-12-26, 11:39 ]
文章主題 : 

為什麼要用二次 <noframes></noframes>?
可以去掉一個,然後把 noframes 放在 frameset 裡面。

<frameset cols="25%,75%">
<frame src="left.htm" name="meun">
<frame src="right.htm" name="main">
<noframes>
<body>
</body>
</noframes>
</frameset>

發表人:  danielwang [ 2004-12-26, 12:38 ]
文章主題 :  <noframe><body>空白</body></noframe> 是做啥用的?

有空白 <body> 的 <noframe> 和沒有 <noframe> 應該是一樣的吧

frame 本身有許多使用性與搜尋器友善度的問題,建議不要用 frameset 的好

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/