Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2004
    Location
    England
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    W3C Validator Won't Validate - <li> Tags

    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...

    Code:
    <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.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    try this instead
    Code:
    <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

  • #3
    New Coder
    Join Date
    Dec 2004
    Location
    England
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much, what does the &lsquo; mean though?

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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

  • #5
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's the character entitity for a left single quote.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •