• Forum Moderator applications are now open! If you're interested in joining an active team of moderators for one of the biggest Pokémon forums on the internet, click here for info.

Wha...?

Status
Not open for further replies.
mother.php:
PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>.: FreeFMA : Mother :.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="mother.css" rel="stylesheet" type="text/css" />
<? $templatename = "mother"; ?>
</head>
<body>
<center>
<table bgcolor="#888888" width="750" summary="">
<tr>
<td valign="top" colspan="3" bgcolor="#222222">
<img src="images/mother/mother.jpg" alt="Banner" /></td>
</tr>
<tr>
<td valign="top" width="135" bgcolor="#330033">
<? include("include/nav.txt"); ?>
<br />
<center><b>topsites</b><br />
<? include("include/topsites.txt"); ?>
</center>
<br />
<br />
<center><b>links</b><br />
<? include("include/links.txt"); ?>
</center>
<br /></td>
<td valign="top" bgcolor="#333333"><b>freefma .::. mother</b><br />
<br />
<font size="-1"><?php
if (!$sin) {
$sin = "news";
$include = $sin . ".txt";
}
else {
$include = $sin . ".txt";
}
if (is_file($include) == "1") {
        include $include;
}
else {
include "404.txt";
}
?></font><br />
<br />
<div align="center"><script type="text/javascript">
<!--
google_ad_client = "pub-0704714077863108";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text";
google_ad_channel ="0476386256";
//-->
</script> <script type="text/javascript" src=
"http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</td>
<td valign="top" width="135" bgcolor="#330033">
<center><b>latest releases</b><br />
<? include("include/latest.txt"); ?>
</center>
<br />
<center><b>affiliates</b></center>
<center><? include("include/affy.txt"); ?>
</center>
<br />
<center><b>shoutbox</b></center>
<center><script language="javascript" src=
"http://www.saybox.co.uk/output.php?user=jkaizer" type=
"text/javascript">
</script></center>
<br />
<center><b>other stuff</b><br />
<? include("include/other.txt"); ?>
</center>
</td>
</tr>
<tr>
<td colspan="3">
<center>Layout Designed by: Arbromon 2005-2006</center>
</td>
</tr>
</table>
</center>
</body>
</html>
 
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).

I figure that closing the meta tag led the parser to believe that you were in fact closing the head section. Therefore, the link tag would be outside of it, the closing head tag wouldn't have anything to close, and other errors ensue. Just don't close it, or change the doctype to use XHTML.
 
Last edited:
Well, if you change it to XHTML, then the <center> and a few other tags stop being valid...
 
smog said:
I figure that closing the meta tag led the parser to believe that you were in fact closing the head section. Therefore, the link tag would be outside of it, the closing head tag wouldn't have anything to close, and other errors ensue. Just don't close it, or change the doctype to use XHTML.
I closed the meta tag in hopes of fixing it, so I don't think it's that...

Zhen Lin: Like I said, it's just that stuff up at the top that's giving me a headache. I know about <object> now :p
 
HTML4 does not have self-closing tags (the <tag /> syntax), and XHTML does not have <font> and <center> and etc. pick one and use it; until then I doubt this will validate.

also in links.txt you include http://www.flame-alchemist.net/ex/work.php?id=JKaizer which has its own doctype and html/head/body tags, so they appear in the source about a third of the way down o.O
 
Status
Not open for further replies.
Back
Top Bottom