Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in HTML Validation

Status
Not open for further replies.

Jimuniguy

Technical User
Mar 6, 2002
363
GB
Hi,

I am not sure what to do about this, the following is my code:

Code:
<span id=&quot;Info&quot; style=&quot;position:relative; left:-20px; height: 100px; top:0px; z-index:2&quot;>
<ol>
<li style=&quot;list-style-type: none;&quot;>For more information e-mail Me@me.com</li>
<li style=&quot;list-style-type: none;&quot;>Page maintained by <a href=&quot;mailto:Tech@support.me&quot;>Myself</a> </li>
</ol>
</span>

Now HTML 4.01 validation says the following:

Error: element &quot;OL&quot; not allowed here; possible cause is an inline element containing a block-level element

Any suggestions on how to get around it?

Cheers

James
 
change your SPAN for a DIV and that should sort it out.
Tony
reddot.gif WIDTH=400 HEIGHT=2 VSPACE=3

 
This is exactly the case that illustrates my answer to &quot;Difference between SPAN and DIV tags&quot; thread.
You have used <span> instead of block-level element. It doesn't make any visual difference, but it's against the rules.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top