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 10 of 10
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts

    Problem of Page validation of HTML5 doc ?

    Hi,

    I have coded my page for HTML5

    and wanted to validate it but I get this error:

    Unable to Determine Parse Mode!

    As far as I understood we just need <!DOCTYPE HTML> at the top now ?


    My source code shows:
    Code:
    	<!DOCTYPE HTML>
    	<html>
    	<head>
    	<title>London 2 Bedroom Flat</title>

    This is the link to the live site:

    london-2-bedroom-flat


    http://london-flats.e9o.net/london-2...t/p10pg15.html

    My actual problem is that the CSS does not work in IE.
    Works fine in FF and Chrome.

    So I thought I would start by validating the HTML and CSS.

    Can anyone see the problem as to to why IE doesn't pick up any of the embedded CSS ?

    And how can I validate my site ?

    Thanks



    .
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #2
    New Coder
    Join Date
    Jul 2013
    Location
    Netherlands
    Posts
    20
    Thanks
    1
    Thanked 3 Times in 3 Posts
    You can validate your site at the W3C Markup Validation Service.

    This page gives 102 errors when checking as HTML 5.

  • #3
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    If you throw this line in your head:
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    you should fix the parser's confusion

    Also, in IE 10, everything looks the same as in FF.

    HTH
    Dan
    Last edited by whizard; 07-04-2013 at 05:41 PM.
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,590
    Thanks
    0
    Thanked 644 Times in 634 Posts
    <!DOCTYPE HTML> is valid at the top of all versions of HTML from 2 through 5 so to validate the page you would still need to tell the validator which version of HTML to validate the page as.
    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.

  • #5
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts
    to validate the page you would still need to tell the validator which version of HTML to validate the page as.
    OK so how do I do that ?

    Should I put <!DOCTYPE HTML5> ??


    BTW I do have the content specified in the meta tags:

    Code:
    <!DOCTYPE HTML>
    	<html>
    	<head>
    	<title><?php echo "$page_name"; ?></title>
    	<meta name="keywords" content="<?php echo "$page_kw1, $page_kw2, $page_kw3, $page_kw4, $page_kw5, $page_kw6"; ?>">
    	<meta name="description" content="<?php echo "$descrip"; ?>">
    	<meta name="revisit-after" content="2 days">
    	<meta name="robots" content="all, index, follow">
    	<meta name="author" content="<?php echo "$title"; ?>">
    	<meta name="generator" content="WordPress 3.5" >
    	<meta name="Rating" content="General">
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    	<link rel="shortcut icon" href="http://www.combld.com/sys_images/favicon.png" type='image/png'>
    	<link rel="icon" href="http://www.combld.com/sys_images/favicon.png" type='image/png'>
    	<link rel="STYLESHEET" type="text/css" href="http://www.combld.com/sites/bbcode.css">

    Thanks.
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #6
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,590
    Thanks
    0
    Thanked 644 Times in 634 Posts
    Quote Originally Posted by jeddi View Post
    OK so how do I do that ?

    Should I put <!DOCTYPE HTML5> ??
    There isn't a particular doctype to use for validating HTML 5. Presumably one HTML 5 is actually released the validator will have an option added so that you can specify the version of HTML for when the generic doctype is used.

    At the moment the closest you can get would e to use an HTML 4 strict doctype for the validation and then ignore any errors it reports that are specifically related to the tags and attributes added in HTML 5.
    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.

  • #7
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts
    You can validate your site at the W3C Markup Validation Service.

    This page gives 102 errors when checking as HTML 5.
    Hi WordPressWouter

    So how did you get it to show you 102 errors ??

    When I put in my url, I get only 3 errors:

    Errors found while checking this document as HTML 4.01 Transitional!
    Result: 3 Errors, 2 warning(s)

    Unable to Determine Parse Mode!

    Line 2, Column 3: character "C" not allowed in prolog
    Line 4, Column 3: character "W" not allowed in prolog
    Line 4, Column 22: end of document in prolog

    So to get 102 errors, you must have made it parse properly.

    How did you do that ??

    Thanks.
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #8
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,903
    Thanks
    15
    Thanked 226 Times in 226 Posts
    It's just just supposed to be:

    <!DOCTYPE html>

    with the html being lower case, and you don't need to put an <html> tag under it.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • #9
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,208
    Thanks
    7
    Thanked 268 Times in 267 Posts
    Quote Originally Posted by jeddi View Post
    Hi WordPressWouter

    So how did you get it to show you 102 errors ??
    By pasting the source directly into the validator. The 3 errors you're getting are a message from your server which is for some reason denying the validator as it tries to read the file. I don't know why that is.

    Dave

  • #10
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,590
    Thanks
    0
    Thanked 644 Times in 634 Posts
    Quote Originally Posted by DrDOS View Post
    you don't need to put an <html> tag under it.
    But it is advisable to include the optional tags such as <html> anyway. Leaving out optional tags can cause problems - its unlikely with that particular tag but if you get into the habit of always including the optional tags then you will not go leaving out one that does cause problems.

    The <!DOCTYPE html> is only needed for HTML 5 - it is not required for XHTML 5 (and should be left out then as it is not a valid XHTML 5 tag)..
    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.


  •  

    Posting Permissions

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