HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>asd</title>
</head>
<body>
<a href="index.php"><div id="logo"></div></a>
</body>
</html>
Правя си експеримент, но УВИ дори за този код ми дава грешка при валидатора http://validator.w3.org/check
К'в му е проблема?
Line 6, Column 35: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<a href="index.php"><div id="logo"></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>").
Все тая грешка ми дава и превъртам вече.. :x