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?
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">
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.
?
Onbekende gebruiker
16-01-2005 14:14
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
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.
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 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.
<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
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)