W3 Validierungs fehler Hilfe!

  • Hallo,

    wir haben heute einen Test bei http://validator.w3.org gemacht und 20 Fehler erkannt:

    Kann mir jemand etwas sagen wie man diese beheben kann?

    value of attribute Y cannot be X; must be one of %3

    • Line 1106, column 25: value of attribute "type" cannot be "email"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "file", "hidden", "image", "button"
      <p><input type="email[FONT=arial black]"[/FONT] required="required" id="contact_223165c49eb81f5fbe208…


    required attribute X not specified
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

    • Line 426, column 8: required attribute "type" not specified
      <script>
    • Line 1117, column 145: required attribute "alt" not specified
      …ww.imstyle.de/wp-content/uploads/twitter-icon.png" width="36" border="0" /></a>
    • Line 1122, column 172: required attribute "alt" not specified
      …w.imstyle.de/wp-content/uploads/facebook-icon.png" width="36" border="0" /></a>
    • Line 1125, column 95: required attribute "alt" not specified
      ….imstyle.de/wp-content/uploads/rss-feed-icon.png" border="0" width="36" /></a>


    Line 1136, column 59: required attribute "type" not specified
    <script src="http://www8.glam.com/js/widgets/glam_logo.js"></script>

    end tag for X omitted, but OMITTAG NO was specified
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    • Line 169, column 30: end tag for "a" omitted, but OMITTAG NO was specified
      </div>
    • Line 743, column 303: end tag for "img" omitted, but OMITTAG NO was specified
      ….de/Beauty-Banner/sale_300x250.jpg" border="0"alt="opus-fashion.com"></a></div>

    there is no attribute X

    • Line 752, column 542: there is no attribute "width"
      …e" value="transparent" /><embed width="300" height="250" type="application/x-s…
    • Line 752, column 555: there is no attribute "height"
      …nsparent" /><embed width="300" height="250" type="application/x-shockwave-flas…
    • Line 752, column 566: there is no attribute "type"
      …><embed width="300" height="250" type="application/x-shockwave-flash" src="htt…
    • Line 752, column 602: there is no attribute "src"
      …e="application/x-shockwave-flash" src="http://www.beautytesterin.de/wp-content…
    • Line 752, column 687: there is no attribute "quality"
      …s/2012/05/beautytest_300.swf" quality="best" wmode="transparent" /></object></…
    • Line 752, column 700: there is no attribute "wmode"
      …05/beautytest_300.swf" quality="best" wmode="transparent" /></object></a></div>
    • Line 1102, column 162: there is no attribute "novalidate"
      …m-revisited-plugin/assets/wp-mailer.php" method="post" novalidate="novalidate">
    • Line 1103, column 35: there is no attribute "required"
      <p><input type="text" required="required" id="contact_223165c49eb81f5fbe2081…
    • Line 1109, column 26: there is no attribute "required"
      <p><textarea required="required" name="contact_223165c49eb81f5fbe20810438661…
    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Wow, wieder so ein überaus hilfreicher Beitrag von befla.

    Die Frage war übrigens nicht, was und wo die Fehler sind, sondern wie man sie behebt.

    pulloverschaf
    Ist das Theme selbst gemacht?
    Du mußt die Fehler in den Dateien des Themes oder auch von Plugins suchen.

    Kommen z.B. die Buttons unten für die sozialen Netzwerke aus einem Plugin? Falls ja, mußt du dort in den PHP-Dateien die Stellen finden, wie die Icons mit img src="..." ausgegeben werden und dort entsprechend ein alt-Attribut hinzufügen.

    Das Problem ist allerdings, daß die Änderungen bei einem Plugin-Update wieder verloren gehen. Besser wäre es, den Plugin-Autor dazu zu bewegen, daß sein Plugin validen HTML-Code erzeugt.

    Alle 6 Fehler in Zeile 752 (there is no attribute ...) kommen z.B. daher, daß das Element embed nicht zum HTML-Standard gehört. Flash und andere aktive Inhalte sollten mit dem object-Element eingebunden werde.

    Aber wie gesagt, falls Du selbst Hand anlegen willst, mußt Du bedenken, das Updates für Plugins und Themes Deine Änderungen überschreiben.

    Gruß
    Ingo

    Wenn ich helfen konnte, bitte [ Gefällt mir ] klicken. :-)

  • Hallo pulloverschaf,

    20 Fehler ist doch noch lange kein Grund, gleich in Panik zu geraten :-)
    Vorab dann, wenn es sich um Folgefehler handelt. Ein Fehler zieht den anderen mit sich. Im Endeffekt sind es vier einfach Fehler, welche behoben werden müssen...

    Irgendwie erinnere ich mich daran, einmal in derselben Situation gewesen zu sein.

    Gruss B-52

    Mit dem Ansatz von Putzlowitsch ist das eine kurze Sache... Einfach einmal Anfangen...

    Einmal editiert, zuletzt von B-52 (20. August 2012 um 11:25)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!