Guten Morgen,
ich habe ein neues Projekt komplett validiert. Der Code ist soweit valide, nur auf dieser Seite wird ein Fehler angezeigt:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Titel</title>
<style type="text/css" media="all">
@import url(css.css);
</style>
<meta name="robots" content="noindex,nofollow" />
</head>
<body>
<div id="box">
<img src="beispiel.jpg" width="800" height="300" alt="" />
</div>
<p style="text-align: right;">Text Text <a href="link.html" title="Link">Link</a>.</p>
<img src="2.jpg" width="359" height="19" alt="" style="position: absolute; bottom: 0;" />
</body>
</html>
Fehlermeldung:
Zeile Spalte: 1
18 Fehler: img ist an dieser Stelle nicht erlaubt. Es fehlt ein ins
, del
, h1
, h2
, h3
, h4
, h5
, h6
, p
, div
, address
, fieldset
Tag.
Fehlerstelle: <img src="2.jpg" width="359" height="19" alt="" style="position: absolute; bottom: 0;" />
Leider verstehe ich nicht, was mir der Validator sagen will. Was ist falsch an dem Code?
Vielen Dank für alle Antworten
Alex