Hallo,
habe in HTML folgenden Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>Tabellen</title>
</head>
<body>
<h1>Tabellen</h1>
<h2>Tabellen ohne Rahmen</h2>
<table>
<tr>
<td>
Inhalt 1
</td>
</tr>
</table>
<h2>Tabellen mit Rahmen</h2>
<table border="1">
<tr>
<td>
Inhalt 1
</td>
</tr>
</table>
<h2>Tabellen mit Spalten</h2>
<table border="1">
<tr>
<td>
Inhalt 1
</td>
<td>
Inhalt 2
</td>
</tr>
</table>
</html>
</body>
Alles anzeigen
Der Validator spuckt folgender Fehler aus:
Error Line 43, Column 7: end tag for "body" omitted, but OMITTAG NO was specified
</html>
?
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 8, Column 1: start tag was here
<body>
Error Line 44, Column 7: end tag for element "body" which is not open
</body>
?
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occurred in a script section of your document, you should probably read this FAQ entry.
Stimmt das? Wenn es richtig ist, wo liegt mein Fehler? Habt gegoogelt, aber keine brauchbare Hilfe gefunden.
mit freundlichen Grüßen
Superho