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 12 of 12
  1. #1
    New Coder
    Join Date
    Oct 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Unhappy Problems validating

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Title Goes Here</title>
    <LINK HREF="main.css" REL="StyleSheet" TYPE="text/css" />
    </head>

    Above is the validation code im using.
    When I run my index page with the validation code in it comes up with the follwing errors...

    Unable to Determine Parse Mode!

    The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:

    AND..

    No DOCTYPE found, and unknown root element. Aborting validation.

    The DOCTYPE Declaration was not recognized or is missing. This probably means that the Formal Public Identifier contains a spelling error, or that the Declaration is not using correct syntax, or that your document is not using a DOCTYPE Declaration.

    When I open up the code over on the ftp the doctype part of the code looks like the following...

    <!--CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="main.css" type="text/css" rel="StyleSheet" />

    Any ideas as this has been bugging me all afternoon?

    Thanks in advance guys!

    Manders
    Last edited by manders; 11-11-2008 at 04:25 PM.

  • #2
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    DOCTYPES must start capitalized (<!DOCTYPE html SYSTEM> rather than <!doctype html SYSTEM>). A body element is explicitly required in XHTML and you haven't closed your html element.
    Is that the real code over FTP? If it's...very wrong...and I assume it's not supposed to be like that.

  • #3
    New Coder
    Join Date
    Oct 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Ok I changed the DOCTYPE to caps and its still the same.
    I have got opening and closing body and html tags in the code im trying to validate but I just havn't displayed it on here.

    Yeah the doctype code changes to <--ctype etc. Im editing it online using "zymic" free web hosting. Could this be the problem?

  • #4
    New Coder
    Join Date
    Oct 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Can anyone help Im really stuck with this?

    I've tried everything, even researched on the internet to help. I have a feeling its something small and silly though!

    Thanks guys

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Can we have a link?

  • #6
    New Coder
    Join Date
    Oct 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

  • #7
    Regular Coder
    Join Date
    May 2008
    Location
    Oxford, UK
    Posts
    422
    Thanks
    14
    Thanked 27 Times in 27 Posts
    you have no DocType at all?

  • #8
    New Coder
    Join Date
    Oct 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    When I upload my html document the code reads:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Title Goes Here</title>
    <LINK HREF="main.css" REL="StyleSheet" TYPE="text/css" />
    </head>
    <body>
    etc..........
    etc..........
    </body>
    </html>

    Then when you click on view source on the actual webpage it reads as you can see:

    <!--CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    Thanks

  • #9
    Regular Coder
    Join Date
    Mar 2008
    Posts
    235
    Thanks
    6
    Thanked 21 Times in 20 Posts
    Quote Originally Posted by manders View Post
    When I upload my html document the code reads:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Title Goes Here</title>
    <LINK HREF="main.css" REL="StyleSheet" TYPE="text/css" />
    </head>
    <body>
    etc..........
    etc..........
    </body>
    </html>

    Then when you click on view source on the actual webpage it reads as you can see:

    <!--CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    Thanks
    Here is an example from a known working page that validates in XHTML 1.0 Transitional, try copying and pasting this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    Andrew Sharman
    Web designer, developer and programmer.

    If you found my post helpful, why not give thanks! :)

  • #10
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    According to my private validator, there should be no capital letters in this line.

    <LINK HREF="main.css" REL="StyleSheet" TYPE="text/css" />

    I don.t know if that is your problem.

    This code validates for my program. (cse80 - Validator)

    It also validates with W3

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Title Goes Here</title>
    <link href="main.css" rel="StyleSheet" type="text/css" />
    </head>
    <body>
    etc..........
    etc..........
    </body>
    </html>
    Frank
    Last edited by effpeetee; 11-13-2008 at 04:02 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • Users who have thanked effpeetee for this post:

    manders (11-13-2008)

  • #11
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Here is a screen shot.

    Frank
    Attached Thumbnails Attached Thumbnails Problems validating-screenhunter_01-nov.-13-16.03.jpg  
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #12
    New Coder
    Join Date
    Oct 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thats excellent. Thankyou all!


  •  

    Posting Permissions

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