Hi
Warum bekomm ich diese Fehlmeldung?
ZitatLine 18, Column 72: document type does not allow element "BODY" here.
…ay.GIF" style="background-attachment: fixed;">
ist "style" innerhalb von body nicht erlaubt?
Hi
Warum bekomm ich diese Fehlmeldung?
ZitatLine 18, Column 72: document type does not allow element "BODY" here.
…ay.GIF" style="background-attachment: fixed;">
ist "style" innerhalb von body nicht erlaubt?
zeig mal dazu den dazugehörigen doctype...
etwas mehr vom quelltext könnte nämlich wunder wirken.
Wenn es ein Doctype für XHTML ist, dann wäre die Großschreibung das Problem.
Hier der gesammter Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<title>Title</title>
<!--[if gte IE 5]>
<link rel="stylesheet" href="scrollbar.css" type="text/css">
<![endif]-->
</head>
[url='http://validator.w3.org/check?uri=referer'][img]http://www.w3.org/Icons/valid-html401[/img][/url]
</p>
<body background="images/gray.GIF" style="background-attachment: fixed;">
<center>
<table style="margin:0px;background-color: #FFFFFF; border:5px; border-color:#6A0000; text-align:center; width:716px;border-style:solid;">
<tr>
<td>
[img]images/zeugnisse.gif[/img]
</td>
<td bgcolor="#6A0000" width="199">
[url='http://URL']Link[/url]
[url='http://URL']Link[/url]
[url='http://bluewin.ch']Link[/url]
[url='http://URLgfgh']Link[/url]
</td>
</tr>
</table>
</center>
<table align="center" style="border:5px; border-color:#6A0000; text-align:center; background-color:#FFFFFF; width:716px;border-style:solid;height:452;">
<tr>
<td bgcolor="#6A0000">
<div id="top">
<font size="3" color="#FF9900" face="Times New Roman">[b]Title[/b]</font>
Text
</div>
</td>
</tr>
</table>
<p style="width: 86%; font-size: 17; font-family: arial; " align=right><font color="#FFFFFF">Impressum | Kontakt </font></p>
</body>
</html>
Alles anzeigen
Wenn Du dann sejumas Rat befolgt hast, würd ich den Rest des Codes noch gegen standardkonformen Code austauschen.
Ach wie blöd von mir ... ich hatte den P-Tag zwischen den </head> und <body> kopiert
Jetzt bekomme ich aber noch eine Warnung:
ZitatNo Character Encoding Found! Falling back to UTF-8.
None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.
Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.
Was hat das zu bedeuten?
Juhui ... bestens danke!
Kannste mir villeicht auch noch sagen, was der Unterschied zwischen <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> und <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> ist?
Der 8859 ist der offizielle westeuropäische Zeichensatz.
Windows 1252 ist ein Microsoft-spezifischer Zeichensatz, auch westeuropäisch, jedoch mit Abweichungen.
http://de.wikipedia.org/wiki/ISO_8859-1