html character encoding

Discussion in 'HTML & Website Design' started by kingerrormessage, Nov 12, 2007.

  1. #1
    i have just ran a page through a html validator and it tells me there is no character encoding, what is this, and how do i define it?

    thanks
     
    kingerrormessage, Nov 12, 2007 IP
  2. Jimmy Paddy

    Jimmy Paddy Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Character encoding is something which must be declared at the start of any HTML page for it to be valid. Itis for the browsers.

    An example would be this:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    Code (markup):
    Wikipedia link: --> en.wikipedia.org/wiki/Character_encoding
     
    Jimmy Paddy, Nov 13, 2007 IP
    kewlchat likes this.
  3. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #3
    It's this thing:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    Code (markup):
    But of course it can be iso-8859-1 or some other formats too. Generally it's utf-8 though.
     
    twistedspikes, Nov 13, 2007 IP
    clinton likes this.
  4. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #4
    I think UTF-8 is the best!

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    HTML:
     
    clinton, Nov 13, 2007 IP
  5. kingerrormessage

    kingerrormessage Guest

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks for that, now got my code validated.

    now that my code has been validated, i have one more question (i don't want to start new threads unnecesserily, so i'll try it in here first).

    is there anything i need to think about in relation to accessibility, is there a website which can check for accessibility issues, or give hints on how to make sites more accessible?

    thanks
     
    kingerrormessage, Nov 13, 2007 IP
  6. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #6
    You should download FireFox and the web developer toolbar (google will find the download easily enough).

    It has an option to quickly validate the HTML, CSS and Accessiblity of your website and that will tell you a lot. It's also got other useful features.
     
    twistedspikes, Nov 13, 2007 IP