Forum Moderators: open

Message Too Old, No Replies

Validating XHTML 1.0 Trans.

         

adammc

11:51 pm on Dec 5, 2007 (gmt 0)

10+ Year Member



Hi Guys,

I keep getting the error whe trying to validate the code:

document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<div id="marqueecontainer">

This is the block of code in question:

<!-- Begin of testimonies -->

<div id="testimonies">
<h2><span class="testimonies-h2">Testimonials</span></h2>

<span class="testimonials">
<div id="marqueecontainer">
<div id="vmarquee" style="position: absolute;">

<!--Testimonials SCROLL-->
<? include"testimonials/testimonials.txt";?>

</div>
</div>
</span>

</div>

<!-- End of testimonies -->

Can anyone suggest a way around this?

adammc

12:10 am on Dec 6, 2007 (gmt 0)

10+ Year Member



Got is sorted!
Changed '<span class="testimonials">' to a div

Xapti

7:55 am on Dec 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah I was going to say that. Spans are inline elements, they cannot contain block level elements to me valid XHTML.