1. Dashboard
  2. Artikel
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  1. HTML - Webmaster Forum
  2. HTML / Webmaster Forum
  3. HTML & CSS Forum

Fehlmeldung

  • Shyne
  • 2. Februar 2008 um 06:08
  • Shyne
    Fortgeschrittener
    Beiträge
    159
    • 2. Februar 2008 um 06:08
    • #1

    Hi

    Warum bekomm ich diese Fehlmeldung?

    Zitat

    Line 18, Column 72: document type does not allow element "BODY" here.
    …ay.GIF" style="background-attachment: fixed;">

    ist "style" innerhalb von body nicht erlaubt?

  • synaptic
    Forum Guru
    Reaktionen
    11
    Beiträge
    10.917
    • 2. Februar 2008 um 08:47
    • #2

    zeig mal dazu den dazugehörigen doctype...
    etwas mehr vom quelltext könnte nämlich wunder wirken.

  • Elvis
    Kaiser(in)
    Beiträge
    2.536
    • 2. Februar 2008 um 10:49
    • #3

    Wenn es ein Doctype für XHTML ist, dann wäre die Großschreibung das Problem.

    Bitte nicht klicken!
    Fighting for Webstandards!
    Du bist Terrorist

  • Shyne
    Fortgeschrittener
    Beiträge
    159
    • 2. Februar 2008 um 17:56
    • #4

    Hier der gesammter Code:

    HTML
    <!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
  • sejuma
    Kaiser(in)
    Reaktionen
    5
    Beiträge
    2.720
    • 2. Februar 2008 um 18:07
    • #5

    Klar,
    du musst den body unmittelbar nach dem geschlossenen head öffnen.

    Schiebe also das

    Code
    <body background="images/gray.GIF" style="background-attachment: fixed;">

    nach oben, unmittelbar nach

    Code
    </head>

    [Blockierte Grafik: http://www.ohne-css.gehts-gar.net/img/banner/banner350x20.png]
    sejuma's CSS-Einsteigerkurs

  • Elvis
    Kaiser(in)
    Beiträge
    2.536
    • 2. Februar 2008 um 18:19
    • #6

    Wenn Du dann sejumas Rat befolgt hast, würd ich den Rest des Codes noch gegen standardkonformen Code austauschen.

    Bitte nicht klicken!
    Fighting for Webstandards!
    Du bist Terrorist

  • Shyne
    Fortgeschrittener
    Beiträge
    159
    • 2. Februar 2008 um 18:24
    • #7

    Ach wie blöd von mir ... ich hatte den P-Tag zwischen den </head> und <body> kopiert :)

    Jetzt bekomme ich aber noch eine Warnung:

    Zitat

    No 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?

  • sejuma
    Kaiser(in)
    Reaktionen
    5
    Beiträge
    2.720
    • 2. Februar 2008 um 18:29
    • #8

    Füge noch das innerhalb des head-Bereichs ein. Damit wird der Zeichensatz definiert.

    Code
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

    [Blockierte Grafik: http://www.ohne-css.gehts-gar.net/img/banner/banner350x20.png]
    sejuma's CSS-Einsteigerkurs

  • Shyne
    Fortgeschrittener
    Beiträge
    159
    • 2. Februar 2008 um 18:41
    • #9

    Juhui ... bestens danke! :D

    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?

  • sejuma
    Kaiser(in)
    Reaktionen
    5
    Beiträge
    2.720
    • 2. Februar 2008 um 18:51
    • #10

    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

    [Blockierte Grafik: http://www.ohne-css.gehts-gar.net/img/banner/banner350x20.png]
    sejuma's CSS-Einsteigerkurs

Tags

  • gif
  • html
  • http
  • style
  • background
  • body
  • text
  • quelltext
  • problem
  • images
  • code
  • microsoft
  • doc
  • element
  • equiv
  • head
  • xhtml
  • wikipedia
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
Zitat speichern