Hallo Forum,
programmiere gerade an einer Seite in PHP und fange nun an die ganzen Fehler zu suchen, bzw. zu beheben. U.a. bekomme ich hier Fehler:
div class="tax_info">[inkl. 16% MwSt zzgl. <a href="https://www.meinedomain.de/shop/shipping.php" class="tax_info"><u>Versandkosten</u></a>]</div>
Erzeugt wird das ganze mit
<div class="tax_info">" . sprintf(TEXT_INFO_TAX, $products_tax , tep_href_link(FILENAME_SHIPPING)) . "</div>"
Hier noch die fehlerbeschreibung von W3C:
468: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
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>").
und
end tag for element "DIV" which is not open
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.
Was mich viel mehr interessiert, was ist an den div Tags falsch, bzw. wie muss es richtig heißen?
Gruß und Danke,
Hans