Validation Warning

  • Kann mir jemand sagen, was diese Meldung genau bedeutet??

    Zitat
    1. [Blockierte Grafik: http://validator.w3.org/images/info_icons/warning.png] No Character Encoding Found! Using utf-8.
      None of the standards sources gave any information on the character encoding labeling for this document. The character encoding utf-8, which you have chosen via the Encoding override option, will be used for tentative validation.
      Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.

    Siehe hier: [Valid] Markup Validation of http://www.toolazytothink.ch/ - W3C Markup Validator

    • 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

  • Das fehlt im Header:

    PHP
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    "Eine gut gestellte Frage ist schon halb beantwortet."

  • Ja, das hat geklappt.

    Kannst du mir auch bei folgender Meldung helfen:

    Zitat

    Line 120, Column 86: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag . … title="Home"><div class="titleblock"></div></a>

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>")

    Das ist in meinem Header:

    PHP
    ...
    <div id="wrapper">
    <div class="border-fix">
    <br/><a href="<?php echo get_settings('home') ?>/" title="Home"><div class="titleblock"></div></a>
    
    
     <div id="header">               
                    
    <?php the_post() ?>
    ...

    Ändere ich etwas an dem <div class="titleblock"></div> verschiebt es mir die ganze Page und zeigt den Header nicht mehr richtig an...

  • eine DIV im A Tag? Lösch das mal, steht doch eh nix drin:

    HTML
    <div class="titleblock"></div>

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

  • das habe ich bereits veruscht. Sobald ich etwas an diesem Div ändere, oder das div einfach lösche, verschiebt es meinen Header.

  • dann solltest du es so versuchen:

    HTML
    <div class="titleblock">
    <a title="Home" href="http://www.toolazytothink.ch/blog/"> </a>
    </div>

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

  • so...

    Zitat

    [COLOR=#000080]<div class=[COLOR=#0000FF]"titleblock"[/COLOR]>[/COLOR]
    [COLOR=#008000]<a title=[COLOR=#0000FF]"Home"[/COLOR] href=[COLOR=#0000FF]"http://www.toolazytothink.ch/blog/"[/COLOR]>[/COLOR] [COLOR=#008000]</a>[/COLOR]
    [COLOR=#000080]</div>[/COLOR]

    oder so...

    PHP
    <a title="Home" href="http://www.toolazytothink.ch/blog/"> </a>
    <div class="titleblock"></div>


    ...klappts!


    ABER:
    Das Header Bild ist jetzt nicht mehr verlinkt. Mit dem class="titleblock" wird wohl das Headerbild aufgerufen. :sad:

    Ich möchte den Header aber auf die Startseite verlinken... :razz:

  • In den FAQ ist ein Artikel wie du den Header verlinken kannst.
    <a href=><div></div></a> ist jedenfalls eine schlechte Idee.

    "Eine gut gestellte Frage ist schon halb beantwortet."

  • Super! Vielen Dank, es funktioniert nun.

    Habe das ganze Teil durch folgendes ersetzt:

    PHP
    <div class="titleblock" onclick="location.href='<?php echo get_settings('home') ?>/';" style="cursor: pointer;"></div>

Jetzt mitmachen!

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