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

Validierungsfehler

  • whitetiger84
  • 3. August 2010 um 14:33
  • whitetiger84
    Anfänger
    Beiträge
    2
    • 3. August 2010 um 14:33
    • #1

    Hallo zusammen,

    versuche schon seit Tagen die Fehler zu finden, aber ich bin glaub ich zu blond dafür. :)

    Ich möchte für einen Freund ein paar Änderungen auf seiner Seite machen, die Seite an sich habe ich nicht erstellt, deshalb blicke ich wohl auch nicht so ganz durch.

    Die Seite habe ich validiert und es wurden 27 Fehler angezeigt. :cry:

    Ich hoffe mir kannd auf die Sprünge helfen, wäre Euch sehr, sehr dankbar.

    Das wäre der Quelltext:

    Zitat


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="content-language" content="de">
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="keywords" lang="de" content="">
    <title>Überschrift</title>
    <link rel="stylesheet" type="text/css" href="styles/format_faebi.css">
    </head>
    <body id=Hintergrund>
    <div align="center">
    <center>
    <table id=Tabelle1 cellpadding="0">
    <tr>
    <td id=ueberschrift colspan="3"><a href="index.htm" style="color:darkblue">Überschrift</a></td>
    </tr>
    <tr>
    <td id=ueberschrift2 colspan="3"><a href="index.htm" style="color:black">Text</a></td>
    </tr>
    <tr>
    <td id=ueberschrift2 colspan="3"><a href="index.htm" style="color:black">&bull; Berlin &bull; Leipzig &bull; Magdeburg</a></td>
    </tr>
    <tr>
    <td><p>&nbsp;</p></td>
    </tr>
    </table>
    <table id=Tabelle1 cellpadding="0">
    <tr>
    <td id=Zelle1></td>
    <td>
    <table id=Tabelle2 cellpadding="0">
    <tr>
    <td id=HyperlinkMenu><a href="1.htm">Kanzlei</a></td>
    <td id=HyperlinkMenu><a href="2.htm">Portfolio</a></td>
    <td id=HyperlinkMenu><a href="3.htm">Team</a></td>
    <td id=HyperlinkMenu><a href="4.htm">Kontakt</a></td>
    <td id=HyperlinkMenu><a href="5.htm">Aktuelles</a></td>
    <td id=HyperlinkMenu><a href="6.htm">Kooperation</a></td>
    </tr>
    </table>
    </td>
    <td id=HyperlinkTop><a href="sitemap.htm">Sitemap</a></td>
    <td id=Zelle1></td>
    </tr>
    </table>
    <table id=Tabelle1 cellpadding="0">
    <tr>
    <td id=Zelle2></td>
    <td id=Zelle3></td>
    <td id=Zelle5>
    <font face="Bookman Old Style" style="font-size:1.5em" color="#000000"><p style="margin-top: 0; margin-bottom: 6" align="center">
    „Um klar zu sehen,</p><p style="margin-top: 10; margin-bottom: 6" align="center">
    genügt oft ein Wechsel der Blickrichtung.”</p></font>
    <font face="Arial" size="2" color="#000000"><p style="margin-top: 6; margin-bottom: 0" align="center">
    Antoine de Saint-Exupéry</p></font></td>
    <td id=Zelle3></td>
    <td id=Zelle4>
    <img src="images/bild_seite_index.jpg" alt="Bild Seite Index" width="180" height="277"></td>
    </tr>
    </table>
    <table id=Tabelle1 cellpadding="0">
    <tr><td id=CopyrightLinie1></td></tr>
    <tr><td id=CopyrightLinie2></td></tr>
    </table>
    <table id=Tabelle1 cellpadding="0">
    <tr>
    <td id=TextformatFußzeile1><p>Copyright © 2010</p></td>
    <td id=TextformatFußzeile2><p>&nbsp;&nbsp;&nbsp;&nbsp;Stand: 12.7.2010</p></td>
    <td id=TextformatFußzeile3><p></p></td>
    <td id=HyperlinkFußzeile4><a></a></td>
    <td id=HyperlinkFußzeile><a href="disclaimer.htm">Disclaimer</a></td>
    <td id=HyperlinkFußzeile><a href="impressum.htm">Impressum</a></td>
    </tr>
    </table>
    </center>
    </div>
    </body>
    </html>

    Alles anzeigen
  • crAzywuLf
    König(in)
    Reaktionen
    1
    Beiträge
    1.175
    • 3. August 2010 um 14:42
    • #2
    Zitat
    • [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png]Line 23, Column 8: ID "UEBERSCHRIFT2" already defined <td id=ueberschrift2 colspan="3"><a href="index.htm" style="color:black">&bull;… ✉
      An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

    Was ist das Problem? Der Validator schreibt dir doch explizit, wo das Problem liegt und eine mögliche Begründung, wie oben, in dem er dich darauf hinweist, dass du statt einer ID eine Klasse in CSS verwenden sollst. (http://validator.w3.org/#validate_by_input)

    Gruß crAzywuLf :D

  • $mysql=
    Azubi(ne)
    Beiträge
    42
    • 3. August 2010 um 14:43
    • #3

    Das einzigste was mir auffällt ist das du id's mehrmals verwendest, das geht nicht. Dann musst du classen verwenden, id kann man in einem html dokumnet nur einmal verwenden. ID wie Personalausweißnummer: EINMALIG vorhanden


    Dieser Fehler ist öfter vorhanden, wenn du die beseitigst sollte alles Valid sein:D Viel Spaß noch

  • #matthias
    Samurai
    Beiträge
    200
    • 3. August 2010 um 16:18
    • #4

    Hallo,

    setz doch mal die ID in " ". Also so

    Code
    <table id="Tabelle1" cellpadding="0">


    Desweitern sollte ein Id Name nur ein mal vorkommen.

    MFG Matthias

    [Blockierte Grafik: http://img361.imageshack.us/img361/6978/19980.jpg]

    HTML


    [Blockierte Grafik: http://img30.imageshack.us/img30/25/27657.gif]

  • whitetiger84
    Anfänger
    Beiträge
    2
    • 3. August 2010 um 23:45
    • #5

    crAzywuLf: danke für den Tip, wenn ichs hätte lesen bzw. übersetzen können, hätte ich das Problem nicht gehabt.

    @ $mysql= vielen, vielen lieben dank für die Antwort. Hast mir meinen Tag gerettet. :D Habs jetzt hin bekommen, hab vorher noch nicht mit id usw. gearbeitet. :Dankeschoen:

    @Matthias: auch dir vielen lieben dank für die schnelle Antwort, funktioniert. :danke2:

Tags

  • html
  • color
  • http
  • klasse
  • style
  • problem
  • input
  • images
  • img
  • code
  • fehler
  • tabelle
  • spaß
  • index
  • error
  • png
  • css
  • info
  • table
  • feedback
  • unique
  • validator
  • colspan
  • name
  • validierungsfehler
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
Zitat speichern