Jag behöver hjälp med en sak! Det är så att jag håller på med ett arbete som ska vara inne idag om 2 timmar och allt ska validera utan fel och varningar!
Och i ett dokument måste man använda sig utav kontextuella selektorer och jag tänkte använda det såhär:
<h6>Diverse hundsidor</h6>
<p><li><a href="http://hem.passagen.se/evafahleson/">Eva och Hannes samojeder</a></li><br />
<li><a href="http://www.genetica.se/lashornan/allmant/index.html">Genetica</a></li><br />
<li><a href="http://www.k9.se/">k9</a> (massa hundrelaterade länkar)</li>
<br />
</p>
Alltså att listor inom ett stycke ska formateras såhär:
}
div ul {
color: #e0ebe0;
list-style-type: square;
}
Men det går inte igenom valideringen... x( Såhär står det i valideringen:
<p> <li><a href="http://bertasplace.cohors.se/">Berta</a> (kullsyster)</li>
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).
Vad är det som är fel? Och hur ska jag använda dessa kontextuella selektorer på ett korrekt sätt?? Antar att jag gjort fel som jag gjort nu :OO