PHP gevorderde |
|
Ik was even mijn pagina aan't valideren bij W3C geeft ie een rare reden aan. Ik heb 2 errors.
Citaat: 1. Warning Line 126, column 7: character "<" is the first character of a delimiter but occurred as data .
if (i < 10) {
This message may appear in several cases:
* You tried to include the "<" character in your page: you should escape it as "<"
* You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
* Another possibility is that you forgot to close quotes in a previous tag.
2. Error Line 301, 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 which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
De eerste error is op mijn functie.
function checkTime(i) {
if (i < 10) {
i = "0" + i;
}
return i;
}
function checkTime(i) { if (i < 10) { i = "0" + i; } return i; }
Hij zegt tot die '<' fout is maar dat hoort toch zo in JS?
En de 2de error is op mijn head afsluiting.
Nou alles is afgesloten dus dat snap ik ook niet echt. Tenzij deze lijn er iets mee te maken heeft:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Zou iemand me kunnen helpen hiermee?
Alvast Bedankt.
|