i am trying to validate someone else's code here and they are using the xhtml1-strict DOCTYPE.
i am almost there; except for few erors...
For the SID attribute issue, this is what they have:
<li class="drop" sid="nav_products"> <span class="head">Our Products</span>
<ul id="nav_products" style="display: none;">
<li><a href="/products/itemNumOne.php">Toys</a></li>
<li><a href="/products/itemNumTwo.php">Tools</a></li>
<li><a href="/products/itemNumThree.php">Beauty</a></li>
<li><a href="/products/itemNumFour.php">Electronics</a></li>
</ul>
</li>
And because of the IFRAME error, i am also getting 2 more errors:
there is no attribute "style"
<h2>Read The Latest News</h2>
<iframe src="http://p.p0.com/YesConnect/HtmlMessagePreview?a=TiTnp" style="width:100%; height:4350px; border-collapse:collapse; border:1px solid #ccc; padding:10px 0 0"></iframe>
Can anyone PLEASE help me fix these errors? I am not an expert in this area, so you will have to explain a bit the solutions. Thanks a lot in advance for your time and help!!!
The question to ask is probably why the previous developer was using "sid" in the first place. As far as I know, attribute "sid" will never validate in any XHTML doctype, so it's a good idea to change it to "class" or "id", and then change the code that relies on "sid" accordingly.