HTML interesse |
|
Wie kan mij alsjeblieft helpen. Ben bezig met het maken van een website. Ben deze nu met de W3Cvalidator aan het controleren. Krijg bij een layout van Lightroom de volgende foutmeldingen:
Line 55, Column 59: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.
<div style="margin-left:17px; margin-top:15px;">✉
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>").
Line 58, Column 151: NET-enabling start-tag requires SHORTTAG YES.
…9E897152_thumb" alt="" class="thumb" />✉
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
Denk dat dit aan het Doctype ligt. Bij deze heb ik het volgende ingevoerd:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Hoe zou ik deze foutmeldingen op kunnen lossen?
|