Ik heb deze code losgelaten op de W3C validator, maar ik krijg steeds twee rare fouten.

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">;
<link type="text/css" href="meccano.css" rel="stylesheet">
<table border="0" class="tablecontent" cellspacing="0" cellpadding="6" align="center"><tr>
<td colspan="10" height="15%">
<table border="1" width="100%" cellspacing="0" class="tablecontent"><tr><td bgcolor="darkred">
<center><h1>Meccano</h1></center></td></tr></table></td></tr>
<tr><td width="17%"><table class="tablecontent" border="1" width="100%" cellspacing="0" cellpadding="2">
<tr><td bgcolor="darkred"><center><div class="tablehead">{{Menuhead}}</div></center></td></tr><tr>
<td bgcolor="lightgrey">{{Menulinks}}</td></tr></table>
</td><td width="80%">
<table border=1 class="tablecontent" width="100%" cellspacing="0" cellpadding="2"><tr>
<td bgcolor="darkred"><center><div class="tablehead">{{Title}}</div>
</center></td></tr><tr><td bgcolor="lightgrey">{{Content}}</td></tr></table>
</td><tr><td colspan="10">
<table class="tablecontent" border="1" width="100%" cellspacing="0" cellpadding="2">
<tr><td bgcolor="darkred"><center><div class="toetersenbellen">
Laatste wijziging: {{Laatstewijziging}}
| {{Contactlink}} | {{Laadtijd}} Sec.
| {{Disclaimerlink}}
| Vandaag: {{Vandaag}}</div></center></td></tr></table>
</td></tr></table>

1: Hij zegt dat ik met head en body moet werken, maar als ik dat doe zegt ie dat ik <head> niet goed afsluit, en dat ik <link> niet in <head> mag hebben.

2: Hij zegt dat ik mn <table> niet in <body> mag hebben, maar waar mag ie dan wel?
waar staat <body> ? ws heb je het fout gelezen ofsow, paste de echte fout is ipv een vertaling :)
Nu heb ik dit:
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">;

<head><link type="text/css" href="meccano.css" rel="stylesheet"></head>
<body>
<table border="0" class="tablecontent" cellspacing="0" cellpadding="6" align="center"><tr>
<td colspan="10" height="15%">
<table border="1" width="100%" cellspacing="0" class="tablecontent"><tr><td bgcolor="darkred">
<center><h1>Meccano</h1></center></td></tr></table></td></tr>
<tr><td width="17%"><table class="tablecontent" border="1" width="100%" cellspacing="0" cellpadding="2">
<tr><td bgcolor="darkred"><center><div class="tablehead">{{Menuhead}}</div></center></td></tr><tr>
<td bgcolor="lightgrey">{{Menulinks}}</td></tr></table>
</td><td width="80%">
<table border=1 class="tablecontent" width="100%" cellspacing="0" cellpadding="2"><tr>
<td bgcolor="darkred"><center><div class="tablehead">{{Title}}</div>
</center></td></tr><tr><td bgcolor="lightgrey">{{Content}}</td></tr></table>
</td><tr><td colspan="10">
<table class="tablecontent" border="1" width="100%" cellspacing="0" cellpadding="2">
<tr><td bgcolor="darkred"><center><div class="toetersenbellen">
Laatste wijziging: {{Laatstewijziging}}
| {{Contactlink}} | {{Laadtijd}} Sec.
| {{Disclaimerlink}}
| Vandaag: {{Vandaag}}</div></center></td></tr></table>
</td></tr></table></body>

Nu krijg ik de error:
Line 4, column 70: end tag for "HEAD" which is not finished

...css" href="meccano.css" rel="stylesheet"></head>

Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.
Probeer eens:
<link type="text/css" href="meccano.css" rel="stylesheet" />
of
<link type="text/css" href="meccano.css" rel="stylesheet"></link>
Je werkt in XHTML dus ALLE moet je afsluiten
@webmakerij: Dan krijg ik dit:
#

Line 4, column 65: character data is not allowed here

...ype="text/css" href="meccano.css" rel="stylesheet" /></head>

You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).

Line 4, column 72: end tag for "HEAD" which is not finished

... href="meccano.css" rel="stylesheet" /></head>

Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.

Probeer deze is:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">;
<html>
<head>
<link type="text/css" href="meccano.css" rel="stylesheet" />
</head>
<body>
<table border="0" class="tablecontent" cellspacing="0" cellpadding="6" align="center"><tr>
<td colspan="10" height="15%">
<table border="1" width="100%" cellspacing="0" class="tablecontent"><tr><td bgcolor="darkred">
<center><h1>Meccano</h1></center></td></tr></table></td></tr>
<tr><td width="17%"><table class="tablecontent" border="1" width="100%" cellspacing="0" cellpadding="2">
<tr><td bgcolor="darkred"><center><div class="tablehead">{{Menuhead}}</div></center></td></tr><tr>
<td bgcolor="lightgrey">{{Menulinks}}</td></tr></table>
</td><td width="80%">
<table border=1 class="tablecontent" width="100%" cellspacing="0" cellpadding="2"><tr>
<td bgcolor="darkred"><center><div class="tablehead">{{Title}}</div>
</center></td></tr><tr><td bgcolor="lightgrey">{{Content}}</td></tr></table>
</td><tr><td colspan="10">
<table class="tablecontent" border="1" width="100%" cellspacing="0" cellpadding="2">
<tr><td bgcolor="darkred"><center><div class="toetersenbellen">
Laatste wijziging: {{Laatstewijziging}}
| {{Contactlink}} | {{Laadtijd}} Sec.
| {{Disclaimerlink}}
| Vandaag: {{Vandaag}}</div></center></td></tr></table>
</td></tr></table></body> </html>
Dan krijg ik dit:
#

Line 5, column 59: character data is not allowed here

<link type="text/css" href="meccano.css" rel="stylesheet" />

You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).

&#9993;
#

Line 6, column 6: end tag for "HEAD" which is not finished

</head>

Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.
dit is niet strict css maar traditioneel he? dus dat <link ... /> klopt dan vlgns mij niet..
<link rel="stylesheet" type="text/css" href="meccano.css"> --> moet niet afgesloten omdat het HTML4 is. Enkel bij XHTML moet je afsluiten
zo krijg ik geen error
Master-Disaster schreef op 16.01.2005 14:17
Moet je niet met <html> beginnen?


Hangt er vanaf wat je DOCTYPE is.
Als je
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">;
gebruikt valideert ie als HTML 4.01 (Strict)

gebruik je
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">;
valideert ie als XHTML 1.0 Strict
en dan moet je de (x)html-tag zo hebben:
<html xmlns="http://www.w3.org/1999/xhtml">;

XHTML is hoofdletter-gevoelig!

Reageren