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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Apr 2010
    Posts
    417
    Thanks
    4
    Thanked 1 Time in 1 Post

    validating my site to HMTL5, having problems

    I have the following code and have removed all the site content, the following is what w3.org says is wrong...

    What would be the correct ways to continue using Dublin Core and the other meta tags ?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    
    <meta name="owner" content="The Owner">
    <meta name="copyright" content="who owns the copyright">
    <meta http-equiv="expires" content="">
    <meta http-equiv="content-language" content="English">
    <meta name="revisit-after" content="2 days">
    <meta name="geo.region" content="GB">
    <meta name="geo.placename" content="Our Town">
    <meta name="geo.position" content="11.123456;-0.123456">
    <meta name="ICBM" content="11.123456, -0.123456">
    <meta name="DC.title" lang="en" content="Our Title">
    <meta name="DC.creator" content="the creator">
    <meta name="DC.subject" lang="en" content="the subject">
    <meta name="DC.description" lang="en" content="Our Discription">
    <meta name="DC.publisher" content="The Publisher">
    <meta name="DC.contributor" content="The Contributor">
    <meta name="DC.type" scheme="DCMIType" content="Text">
    <meta name="DC.format" scheme="IMT" content="text/html">
    <meta name="DC.identifier" content="/meta-tags/dublin/">
    <meta name="DC.source" content="/meta-tags/">
    <meta name="DC.language" scheme="RFC1766" content="en">
    <meta name="DC.relation" content="/meta-tags/">
    <meta name="DC.coverage" content="World">
    
    </head>
    <body>
    
    </body>
    </html>
    these are the errors it shows...

    Code:
    Error Line 5, Column 49: Bad value owner for attribute name on element meta: Keyword owner is not registered.
    
    <meta name="owner" content="The Owner">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 6, Column 56: Bad value copyright for attribute name on element meta: Keyword copyright is not registered.
    
    <meta name="copyright" content="who owns the copyright">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 7, Column 38: Bad value expires for attribute http-equiv on element meta.
    
    <meta http-equiv="expires" content="">
    
    ✉
    Error Line 8, Column 54: Using the meta element to specify the document-wide default language is obsolete. Consider specifying the language on the root element instead.
    
    <meta http-equiv="content-language" content="English">
    
    ✉
    Error Line 9, Column 44: Bad value revisit-after for attribute name on element meta: Keyword revisit-after is not registered.
    
    <meta name="revisit-after" content="2 days">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 10, Column 37: Bad value geo.region for attribute name on element meta: Keyword geo.region is not registered.
    
    <meta name="geo.region" content="GB">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 11, Column 58: Bad value geo.placename for attribute name on element meta: Keyword geo.placename is not registered.
    
    <meta name="geo.placename" content="Our Town">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 12, Column 56: Bad value geo.position for attribute name on element meta: Keyword geo.position is not registered.
    
    <meta name="geo.position" content="11.123456;-0.123456">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 13, Column 49: Bad value ICBM for attribute name on element meta: Keyword icbm is not registered.
    
    <meta name="ICBM" content="11.123456, -0.123456">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 14, Column 67: Bad value DC.title for attribute name on element meta: Keyword dc.title is not registered.
    
    <meta name="DC.title" lang="en" content="Our Title">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 15, Column 46: Bad value DC.creator for attribute name on element meta: Keyword dc.creator is not registered.
    
    <meta name="DC.creator" content="the creator">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 16, Column 56: Bad value DC.subject for attribute name on element meta: Keyword dc.subject is not registered.
    
    <meta name="DC.subject" lang="en" content="the subject">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 17, Column 64: Bad value DC.description for attribute name on element meta: Keyword dc.description is not registered.
    
    <meta name="DC.description" lang="en" content="Our Discription">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 18, Column 50: Bad value DC.publisher for attribute name on element meta: Keyword dc.publisher is not registered.
    
    <meta name="DC.publisher" content="The Publisher">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 19, Column 54: Bad value DC.contributor for attribute name on element meta: Keyword dc.contributor is not registered.
    
    <meta name="DC.contributor" content="The Contributor">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 20, Column 54: Bad value DC.type for attribute name on element meta: Keyword dc.type is not registered.
    
    <meta name="DC.type" scheme="DCMIType" content="Text">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 20, Column 54: The scheme attribute on the meta element is obsolete. Use only one scheme per field, or make the scheme declaration part of the value.
    
    <meta name="DC.type" scheme="DCMIType" content="Text">
    
    ✉
    Error Line 21, Column 56: Bad value DC.format for attribute name on element meta: Keyword dc.format is not registered.
    
    <meta name="DC.format" scheme="IMT" content="text/html">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 21, Column 56: The scheme attribute on the meta element is obsolete. Use only one scheme per field, or make the scheme declaration part of the value.
    
    <meta name="DC.format" scheme="IMT" content="text/html">
    
    ✉
    Error Line 22, Column 56: Bad value DC.identifier for attribute name on element meta: Keyword dc.identifier is not registered.
    
    <meta name="DC.identifier" content="/meta-tags/dublin/">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 23, Column 45: Bad value DC.source for attribute name on element meta: Keyword dc.source is not registered.
    
    <meta name="DC.source" content="/meta-tags/">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 24, Column 55: Bad value DC.language for attribute name on element meta: Keyword dc.language is not registered.
    
    <meta name="DC.language" scheme="RFC1766" content="en">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 24, Column 55: The scheme attribute on the meta element is obsolete. Use only one scheme per field, or make the scheme declaration part of the value.
    
    <meta name="DC.language" scheme="RFC1766" content="en">
    
    ✉
    Error Line 25, Column 47: Bad value DC.relation for attribute name on element meta: Keyword dc.relation is not registered.
    
    <meta name="DC.relation" content="/meta-tags/">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 
    
    Error Line 26, Column 41: Bad value DC.coverage for attribute name on element meta: Keyword dc.coverage is not registered.
    
    <meta name="DC.coverage" content="World">
    
    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time.
    Last edited by jasonpc1; 05-31-2011 at 08:31 AM.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    My first question would be: What has your code to do with HTML 5? Firstly, I don’t see any HTML 5 in there and secondly you are declaring it as HTML 4 transitional with the doctype you’re using.

    Now, I can’t imagine that everything used there is wrong so there must be something else – e. g. I see no title element there and I see no character enconding. Would you mind providing your entire source code (preferably as a link to your page)?

  • #3
    Regular Coder
    Join Date
    Apr 2010
    Posts
    417
    Thanks
    4
    Thanked 1 Time in 1 Post
    I am looking to update the site so it is HTML5

    So I first done a check on the home page and changed the settings on the validator page to viewthe page as HTML5, so it ignors the top lines and assumes it is HTML5 (even thought it clearly is not)

    The results show the errors I listed in the first post.

    What I was wanting to find out is what change to these lines to I make to I can claim than the page is HTML5 in the top lines so it actually validates and shows as HTML5 ?

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I'd recommend you to go through some tutorials like http://diveintohtml5.org/.
    You have a mistake in your first line itself, as pointed out by VIP.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    Regular Coder
    Join Date
    Apr 2010
    Posts
    417
    Thanks
    4
    Thanked 1 Time in 1 Post
    Quote Originally Posted by abduraooft View Post
    I'd recommend you to go through some tutorials like http://diveintohtml5.org/.
    You have a mistake in your first line itself, as pointed out by VIP.
    Thank abduraooft I shall make this my first point of call to learn how to alter my code so it validates to HTML5

  • #6
    New to the CF scene
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I believe that the W3C validator is having a parse error or is flagging certain tags invalid all of sudden. I had a few sites with valid markup a week ago, double check today and it tells me quite a few of the tags are not registered..

    This syntax using the html5 experimental validator flags "canonical" and "apple-touch-icon" invalid for the markup below:

    Code:
    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Test</title>
    <meta name="author" content="North Coast Technology Group">
    <meta name="description" content="Description for this site as a test">
    <meta name="keywords" content="Keywords, One, Two">
    <meta name="viewport" content="width=1024">
    <link rel="apple-touch-icon" href="/apple-touch-icon.png">
    <link rel="shortcut icon" href="css/images/favicon.ico" type="image/x-icon">
    <link href="css/core.min.css" rel="stylesheet" type="text/css">
    <link rel="canonical" href="http://test.com/">
    </head>
    <body></body>
    </html>
    I cannot find anything as to why this is happening yet as these tags were valid before and I am currently finding nothing on why this is now not a registered keyword. I have played with the syntax looking but no fixes yet.


  •  

    Posting Permissions

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