noscript Fehler

Status
Nicht offen für weitere Antworten.

buddha

Erfahrenes Mitglied
Hallo,
Ich bastel wieder was und beim validieren wird ein noscript Fehler angezeigt.

Line 28, Column 18: document type does not allow element "noscript" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

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>").

Wenn ich das richtig verstehe ist es falsch ein Blockelement innerhalb eines Inlineelements zu positionieren. Im FF wird es zwar richtig angezeigt aber beim validieren kommt halt die Fehlermeldung.
Danke
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test</title>
<style type="text/css">
<!--
body {
	background-color: #000000;
}
body,td,th {
	color: #CCCCCC;
}
.Stil1 {color: #000000}
#sound { margin-top:-20px;}
-->
</style>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<div align="center">
  <p><br />
    <img src="vorlage.jpg"  alt="img"/><br />
    <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','440','height','60','title','swf','src','sound','loop','false','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','bgcolor','#000000','movie','sound' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="440" height="60" title="swf">
      <param name="movie" value="sound.swf" />
      <param name="quality" value="high" /><param name="LOOP" value="false" /><param name="BGCOLOR" value="#000000" />
          </object></noscript>
</p>  
</div>
</body>
</html>
 
Zuletzt bearbeitet:
<noscript> ist lt. XHTML-Transitional kein Blockelement, sondern ein "misc"-Element. Als solches darf es lt. der DTD nur in besagten Elementen vorkommen.
 
Hi,

und was hat das bitte mit der Formatierungssprache CSS zu tun?

Das Thema wandert ins HTML-Forum.
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück