...

View Full Version : W3C Validator Won't Validate - <li> Tags



wobblehead
01-24-2005, 03:32 PM
I am having trouble getting the W3C Validator, to validate an XHTML page because it is saying that the code on lines 147-157 contained one or more bytes that the validator cannot interpret as utf-8. All that exists on these lines are...




<ul>
<li>‘Just Let Go’</li>
<li>‘Cloud’</li>
<li>‘Never Win’</li>
<li>‘A Kick In The Teeth’</li>
<li>‘Everything To Gain’</li>
<li>‘We Need A War’</li>
<li>‘Wednesday’</li>
<li>‘Happy’</li>
<li>‘Ritz 107’</li>
<li>‘All We Are’</li>
<li>‘Circle (Vision Creation New Sun)'</li>
</ul>



Please can anybody tell me anyway I can overcome this issue? Thanks.

_Aerospace_Eng_
01-24-2005, 04:56 PM
try this instead

<ul>
<li>&lsquo;Just Let Go&rsquo;</li>
<li>&lsquo;Cloud&rsquo;</li>
<li>&lsquo;Never Win&rsquo;</li>
<li>&lsquo;A Kick In The Teeth&rsquo;</li>
<li>&lsquo;Everything To Gain&rsquo;</li>
<li>&lsquo;We Need A War&rsquo;</li>
<li>&lsquo;Wednesday&rsquo;</li>
<li>&lsquo;Happy&rsquo;</li>
<li>&lsquo;Ritz 107&rsquo;</li>
<li>&lsquo;All We Are&rsquo;</li>
<li>&lsquo;Circle (Vision Creation New Sun)&rsquo;</li>
</ul>
try using character entities when u run into a similar problem again

wobblehead
01-24-2005, 05:02 PM
Thank you very much, what does the &lsquo; mean though?

_Aerospace_Eng_
01-24-2005, 05:12 PM
its the character entity for left single quotation mark hence the ls and same for the rsquo; right single quotation mark here is a page that has a list of most of the entities if not all of them that are in html http://www.w3schools.com/html/html_entitiesref.asp

chilipie
01-24-2005, 05:12 PM
It's the character entitity for a left single quote.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum