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 7 of 7
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Does my site have good XHTML?

    Hello,

    I was wondering if anyone would be kind enough to tell me if they think that a site I have developed is coded well. I have tried to code it in XHTML 1.1.

    This is the url of the homepage: www.apcrc.nhs.uk.

    Many thanks.

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,460
    Thanks
    1
    Thanked 23 Times in 21 Posts
    Well, there's always http://validator.w3.org . But that'll only tell you if the XHTML markup is valid.

    As for "good", I think that's a whole different metric (one talking about usability, clean code, friendly design, etc.), and we have a Site Reviews forum for that. Do you want me to move it?
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,642
    Thanks
    6
    Thanked 1,005 Times in 978 Posts
    Looking at the page information (Ctrl/Cmd+I in Firefox and likely other browsers, too), it tells me that the MIME type of the page is “text/html” which is basically telling us that your website is not parsed as XML, it is plain old “tag soup” just looking like XHTML. That MIME type is especially wrong for XHTML 1.1 which needs to be served as “application/xhtml+xml” and requires an XML declaration at the very top (see also: http://en.wikipedia.org/wiki/XHTML#XML_declaration).

  • #4
    New Coder
    Join Date
    Jun 2012
    Location
    MI
    Posts
    11
    Thanks
    0
    Thanked 2 Times in 2 Posts
    With my experience. I reviewed your site with GoogleChrome/ Safari.

    It appears that the website is not parsed with the XML coding.

    You would probably need to review the above posts. Or the below link to help with HTML 5 parsing with XML.
    http://www.w3schools.com/xml/xml_parser.asp

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,633
    Thanks
    0
    Thanked 649 Times in 639 Posts
    An easy way to check for the most basic errors in an XHTML page is to load the page into several different browsers.

    If it is not offered for download in IE8 or earlier then it isn't XHTML since IE8 doesn't understand XHTML and so cannot display an XHTML page at all - so if it does display your page then you don't have XHTML.

    If you have errors in your XHTML then some browsers will actually stop rendering the page at that point and display an error message telling you about the error. This is how XHTML is supposed to work but IE9 and recent versions of Opera disregard this and rewrite your XHTML for you so that it will still display. Firefox is a good browser to check with as it doesn't try to fix any XHTML errors for you.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #6
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my confusion is vanished away thanks for this great information...

  • #7
    New Coder
    Join Date
    May 2012
    Posts
    34
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by felgall View Post
    An easy way to check for the most basic errors in an XHTML page is to load the page into several different browsers.

    If it is not offered for download in IE8 or earlier then it isn't XHTML since IE8 doesn't understand XHTML and so cannot display an XHTML page at all - so if it does display your page then you don't have XHTML.

    If you have errors in your XHTML then some browsers will actually stop rendering the page at that point and display an error message telling you about the error. This is how XHTML is supposed to work but IE9 and recent versions of Opera disregard this and rewrite your XHTML for you so that it will still display. Firefox is a good browser to check with as it doesn't try to fix any XHTML errors for you.
    Thanks for sharing this helpful information about basic errors in an XHTML. I have been using this tool to make designing website. I have faced this problem, so this information will help me in this issue in future.


  •  

    Posting Permissions

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