PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Was ist an dem Quellcode falsch


JasonX
2004-09-04, 05:54:18
Ich wollte meine Seite mit CSS aufwerten, und habe da ein kleines Problem mit den 2 Menüs die ich gemacht habe, und zwar folgendes.

<div id="menucontainer1">
<p class="menutitle">Navigation</p>
<a class="menu" href="index.html">Home</a><br>
<a class="menu" href="News.html">News</a><br>
<a class="menu" href="Sounds.html">Fun-Sounds</a><br>

</div>
<div id="menucontainer2">
<p class="menutitle">Partnerseiten</p>
<a class="menu" href="http://meinehp.com/topo/in.php?ID=1094075609" TARGET="_BLANK">
<IMG SRC="http://webgigant.de/web/topo/gif/vote.gif" BORDER="0" alt="Topsites-Link"></A>
</div>

<p align="center">Dies ist der Developer-Bereich, jeder der gerne SEINE Werke der &ouml;ffentlichkeit Pr&auml;sentieren will<br>
Der kann dies Hier machen. Bewertet werden die Projekte dann im Forum im Developer-Bereich. Um auch eure Werke <br>
zu presentieren einfach eine E-mail an <a href="mailto:webmaster@pabian.de">webmaster@pabian.de</a> .<br>

Enthalten sein sollen die Datei, max 5MB gro&szlig;, der Autoren- bzw. K&uuml;nstername, Dateityp, (falls vohanden)die L&auml;nge,<br>
und der Name wie das Projekt heist.</p>

<table cellspacing="1px" bgcolor="#00FFFF" align="center" border="10px" style="bordercolor:#FF7000">
<tr>
<td bgcolor="#FF7C00">Projekt </td>
<td bgcolor="#FF7000">Name </td>
<td bgcolor="#FF7000">Filetyp </td>

<td bgcolor="#FF7000">L&auml;nge </td>
<td bgcolor="#FF7000">Autor (Interpret)</td>
</tr>
<tr>
<td>
<a href="Developer/Dj-Thunderbolt--Quite.mp3" onClick="play"><img src="/Bilder/Bilder/Downbutton.gif" width="100" height="50" border="0" alt="Download"></a></td>
<td>Quite </td>
<td>mp3 </td>

<td>2:24 min. </td>
<td>Dj Thunderbolt </td>
</tr>
<tr>
<td><object src="Developer/Dj Thunderbolt-TheFight.mp3"><img src="/Bilder/Bilder/Downbutton.gif" width="100" height="50" border="0" alt="Download"></a> </td>
<td>The Fight </td>
<td>mp3 </td>

<td>3:25 min. </td>
<td>Dj Thunderbolt </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>

<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>

<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>

<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>

<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>

<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>

<td> </td>
<td> </td>
</tr>
</table>

<p align="center">Die Daten werden ihnen zum Download angeboten, d. h. nicht das sie diese Daten ohne <br>
zustimmung des Autors dublizieren d&uuml;rfen.</p>

<style type="text/css">
<!--


#menucontainer1,#menucontainer2 {
border:4px solid; #ffffff;
background-color: #00FF40;
width: 120px;
padding: 5px;
line-height: 20px;
height: 700px;
color: #0000FF }

#menucontainer2 {
float: right; }

#menucontainer1 {
float: left; }
.menuetitle
{
margin: -5px -5px 5px -5px;
padding: 2px;
background-color:#00C000;
color: #eeeeee;
font-weight: bold;
border-bottom solid: #ffffff;
}
-->
</style>


So, ich habe also nun mit Css die 2 Menüs gemacht, nun sagt aber der Validator das hier:

Line 98, column 22: document type does not allow element "STYLE" here

<style type="text/css">

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


Was ist an dem Style-Tag falsch, Phase5 hat mir nur das vorgeschlagen um CSS in den Body der HTML einzubinden, ohne das funktioniert es nicht.

JasonX
2004-09-04, 06:00:31
Bitte löschen, hat sich erledigt, sorry.