tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
3
ZUGRIFFE
732
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
DIESES THEMA IST
GESCHLOSSEN
  1. #1
    Registriert seit
    Oct 2004
    Ort
    Sucre, Bolivien
    Beiträge
    158
    Hallo Leute,

    ich habe hier ein Problem bei dem ich nicht weiterweiß. Folgendes:
    Wenn ich die HTML-Seite (sie ist mit Inhalt gefüllt, es wird CSS eingebunden (habe ich hier alles mal rausgelassen))
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    <html> 
    <head>
    <title>Titel</title>
    </head>
    <body>    <div id="all"><a name="top"></a>
    Inhalt
              </div>
    </body>
    </html>
    beim W3C validiere, kommt als Ergebnis folgende Mitteilung:

    Line 42, column 19:
    an attribute value literal can occur in an attribute specification list only after a VI delimiter

    <div><a name="top"></a>

    Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".


    und

    Line 42, column 24:
    end tag for element "A" which is not open

    <div><a name="top"></a>

    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 occured in a script section of your document, you should probably read this FAQ entry.


    Ich habe keine Ahnung was das soll. Sowohl das Gleichheitszeichen wie auch das öffnende a-Tag sind vorhanden.

    Bei meinen anderen Dateien, die den gleichen Aufbau haben ist alles in Ordnung.

    Vielleicht könnt ihr mir ja helfen.

    Gruß Tonda
     
    Dieses Schreiben wurde maschinell erstellt und ist ohne Unterschrift gültig.

    Cinema 4D R9.1 Studio, Corel 11

    Kleine nette Kneipe in Sucre, Bolivien: www.cafegnadenlos.com

  2. #2
    Avatar von Sebastian Wramba
    Sebastian Wramba Sebastian Wramba ist offline Mitglied Smaragd
    Registriert seit
    Sep 2001
    Ort
    Essen (NRW)
    Beiträge
    1.218
    Dreh das Ganze doch mal um, sodass du einem Wort einen Anker verpasst hast.

    HTML-Code:
    <div id="all">
      <a name="top">Inhalt</a>
    </div>

    Nebenbei. Wenn ich folgenden Code durch den Validator jage, wird er als valid ausgegeben.

    HTML-Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html> 
    <head>
    <meta http-equiv="Content-type" content="text/html; charset=iso-8859-15">
    <title>Titel</title>
    </head>
    <body>
    
     <div id="all">
      <a name="top"></a>
      Inhalt
     </div>
    
    </body>
    </html>
    Geändert von Sebastian Wramba (01.05.05 um 13:12 Uhr)
     
    <Florian> Ihr seit alles so Real Life Ruler, oder?
    <SirRobin> Lineale?

  3. #3
    Registriert seit
    Oct 2004
    Ort
    Sucre, Bolivien
    Beiträge
    158
    Zitat Zitat von Sebastian Wramba
    Dreh das Ganze doch mal um, sodass du einem Wort einen Anker verpasst hast.

    HTML-Code:
    <div id="all">
      <a name="top">Inhalt</a>
    </div>
    Ja, das hat geklappt. Vielen Dank.

    Zitat Zitat von Sebastian Wramba
    Nebenbei. Wenn ich folgenden Code durch den Validator jage, wird er als valid ausgegeben.

    HTML-Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html> 
    <head>
    <meta http-equiv="Content-type" content="text/html; charset=iso-8859-15">
    <title>Titel</title>
    </head>
    <body>
    
     <div id="all">
      <a name="top"></a>
      Inhalt
     </div>
    
    </body>
    </html>
    Das ist ja das verückte. Wie schon gesagt sind alle Seiten (ca. 10) dieses Projektes so aufgebaut und er meckert nur an dieser einen rum.

    Gruß Tonda
     
    Dieses Schreiben wurde maschinell erstellt und ist ohne Unterschrift gültig.

    Cinema 4D R9.1 Studio, Corel 11

    Kleine nette Kneipe in Sucre, Bolivien: www.cafegnadenlos.com

  4. #4
    Registriert seit
    Oct 2004
    Ort
    Sucre, Bolivien
    Beiträge
    158
    Bleibt noch diese Meldung, aus der ich nicht schlau werde:

    Line 47, column 17: an attribute value literal can occur in an attribute specification list only after a VI delimiter

    <div id="kopf">

    Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".


    Nehme ich da das Attribut id ganz weg und schicke die Datei durch den Validator, kommt die gleiche Meldung mit dem nächstfolgenden Div-Container.

    Tonda
     
    Dieses Schreiben wurde maschinell erstellt und ist ohne Unterschrift gültig.

    Cinema 4D R9.1 Studio, Corel 11

    Kleine nette Kneipe in Sucre, Bolivien: www.cafegnadenlos.com

Ähnliche Themen

  1. XML Validierung ?
    Von HuberDe im Forum Java
    Antworten: 8
    Letzter Beitrag: 09.04.08, 14:48
  2. Validierung
    Von brainsucker im Forum HTML & XHTML
    Antworten: 1
    Letzter Beitrag: 07.02.08, 13:39
  3. libxml2 und validierung mit XSD
    Von Maxik25 im Forum C/C++
    Antworten: 0
    Letzter Beitrag: 28.12.07, 11:51
  4. Email Validierung
    Von splat im Forum PHP
    Antworten: 3
    Letzter Beitrag: 23.07.07, 20:39
  5. CSS Validierung?
    Von Admi im Forum CSS
    Antworten: 6
    Letzter Beitrag: 09.02.05, 17:34