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 9 of 9
  1. #1
    New Coder
    Join Date
    Jun 2008
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Validation Problem

    Have had my webpage validated and had two warnings. Could someone tell me why because i can't figure out what i've done wrong. I get the following message:

    This document was Tentatively checked as XHTML 1.0 Strict tentatively passed; 2 warning(s)

    No Character encoding found! Falling back to utf-8.

    No Character encoding found at document level.

    The Doctype and Character set i have used are below.


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
    </body>
    </html>

    Thanks in advance

  • #2
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,306
    Thanks
    4
    Thanked 205 Times in 202 Posts
    The W3C recommended template for a XHTML strict document shows that your xmlns line should read:

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    Dave .... HostMonster for all of your hosting needs

  • #3
    New Coder
    Join Date
    Jun 2008
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hiya DJM

    Have taken your advice but when validated it still comes back with:

    This document was Tentatively checked as XHTML 1.0 Strict
    Tentatively passed 2 warnings.

    No Character encoding found! Falling back to utf-8
    No Character encoding declared at document level

    Thanks for taking the time out to reply

  • #4
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,306
    Thanks
    4
    Thanked 205 Times in 202 Posts
    Are these 2 lines

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml/DTD/xhtml1-strict.dtd">
    all on one line in your document?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml/DTD/xhtml1-strict.dtd">
    Do you have a link to the page in question available?
    Dave .... HostMonster for all of your hosting needs

  • #5
    New Coder
    Join Date
    Jun 2008
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi DJM

    Unfortunately the webpage is not online at the moment but i have typed the doctype exactly as it appears on the webpage below:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    I really appreciate all the help and advice i have received at the CodingForums but i am now beginning to think that the validation process is just a time waster especially when you take into account that it is not actually needed for a webpage/site to appear on line. I have gone over the doctype looking for any errors of which i can find none! If anyone can point out an error that i may have over looked please let me know as i would be more than happy to rectify it. Big thanks

  • #6
    New Coder
    Join Date
    Jun 2008
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Finally!!

    I have finally managed to have my webpage validated without any warnings.
    YIPPEE!

  • #7
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,306
    Thanks
    4
    Thanked 205 Times in 202 Posts
    Quote Originally Posted by cadfan View Post
    I really appreciate all the help and advice i have received at the CodingForums but i am now beginning to think that the validation process is just a time waster especially when you take into account that it is not actually needed for a webpage/site to appear on line.
    It is certainly NOT a time waster. Validating your pages ensures that your visitors will have a consistent experience no matter what browser they are using. You're doing them, and yourself, a dis-service if you don't create valid pages IMO.

    In a later post you said you resolved the problem. What did you find/do that resolved it so that others might benefit from this thread?
    Dave .... HostMonster for all of your hosting needs

  • #8
    New Coder
    Join Date
    Jun 2008
    Posts
    80
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You are of course correct when you say validation is not a time waster. Was just me letting off a little steam because i could not see the error what was staring me in the face.

    The error was that i had added an (s) when i shouldn't have and made the meta tag read:

    <meta http-equiv="Contents-Type"

    So my advice to anyone in a similar position is check, and recheck your spelling at all times to rule out an error like the one i had.

  • #9
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,306
    Thanks
    4
    Thanked 205 Times in 202 Posts
    Ah, it's always the littlest and simplest things that bite us in the arse
    Dave .... HostMonster for all of your hosting needs


  •  

    Posting Permissions

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