www.webdeveloper.com
Results 1 to 2 of 2

Thread: Character encoding

  1. #1
    Join Date
    Mar 2013
    Location
    South Jersey
    Posts
    6

    Character encoding

    www.kurtesposito.com

    I have <meta charset="utf-8"> written in my code but the w3validater says I have no character encoding set. Furthermore it says I have these errors for that same bit of code which it tells me I don't have:

    -end tag for "meta" omitted, but OMITTAG NO was specified

    -start tag was here

    -required attribute "content" not specified

    And it doesn't give me much of an explanation for any of those. What can I do to fix this? Thanks.

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,207
    Sounds like you are using HTML 5 meta tags with a XHTML document type. This document type requires tags which normally do not have a closing tag to be closed using a space and the symbol /. Example: " <br /> " Same for the meta tag, image tag, etc..

    Try:
    Code:
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    Looks like you have made the corrections already.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles