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

01-24-2005, 04: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...

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

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

01-24-2005, 05:56 PM
try this instead

<li>&lsquo;Just Let Go&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;Ritz 107&rsquo;</li>
<li>&lsquo;All We Are&rsquo;</li>
<li>&lsquo;Circle (Vision Creation New Sun)&rsquo;</li>
try using character entities when u run into a similar problem again

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

01-24-2005, 06: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

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