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

    my page will not validate to html5 ?

    I have the following test page that I am using to show what I mean.

    When I check this with w3.org validator it kicks up a fuss that most if not all the tags are not valid names.

    What am I doing wrong to have this not work properly ? the only change to the code that I have made so far is the charset to windows-1252 from charset=iso-8859-1

    Code:
    <!DOCTYPE HTML>
    <html>
    <head>
    <title>Adhesives - Welcome to our web site</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
    <link rel="stylesheet" href="styles.css" type="text/css" />
    <meta name="description" content="Adhesives, Barbecue Accessories, Barbecues, Bin Fresheners, Camping Furniture, Chimeneas, Coolbags, Decorating Aids, Door Curtains, Fans, Fertilisers, Fillers, Garden Electrical, Garden Essentials, Garden Landscaping, Garden Lighting, Garden Ornaments, Garden Planters, Garden Watering, Garden Woodcare, Gardening Tools, Kitchen Essentials, Ladders, Lanterns, Laundry, Lawncare, Lunch On The Go, Outdoor Living, Paint Remover, Paints, Pest Control, Picnicware, Plantcare, Specialist Paints, Travel Essentials, Varnishes, Weedkillers" />
    <meta name="keywords" content="xyz" />
    <meta name="owner" content="admin@" />
    <meta name="copyright" content="copyright" />
    <meta name="author" content="author" />
    <meta name="language" content="en" />
    <meta name="rating" content="General" />
    <meta name="robots" content="index,follow" />
    <meta name="revisit-after" content="2 days" />
    
    <meta http-equiv="expires" content="" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-style-type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <meta http-equiv="Content-language" content="en" />
    
    
    <link rel="shortcut icon" href="Image2.gif" />
    <link rel="alternate" type="application/rss+xml" title="RSS feed" href="http://www.site.com/rss.php" />
    
    <meta name="geo.region" content="GB" />
    <meta name="geo.placename" content="" />
    <meta name="geo.position" content="" />
    <meta name="ICBM" content="" />
    
    <meta name="DC.title" lang="en" content="General" />
    
    <meta name="DC.creator" content="DC.creator" />
    <meta name="DC.subject" lang="en" content="DC.subject" />
    <meta name="DC.description" lang="en" content="DC.description" />
    <meta name="DC.publisher" content="DC.publisher" />
    <meta name="DC.contributor" content="DC.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>
    welcome
    </body>
    </html>

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Posts
    105
    Thanks
    12
    Thanked 1 Time in 1 Post
    Could it be caused by the dots you have between the words: "geo.religion" etc...? The validator usually shows you snippets of code where the problem lies. Can you see what it is throwing back at you?

    Has the validator brought up any issues in your doctype? Because normally, a valid DTD is not just "HTML" but lots of other stuff. Maybe choose one from here: http://www.w3.org/QA/2002/04/valid-dtd-list.html and see if that helps...?
    Last edited by Daniel_A_Varney; 07-10-2011 at 03:28 PM.

  • #3
    Regular Coder
    Join Date
    Apr 2010
    Posts
    417
    Thanks
    4
    Thanked 1 Time in 1 Post
    yes I see that normally there is more than just "HTML" but I was hoping to have the pages valid for HTML5

    http://dev.w3.org/html5/spec/

    but when i use a standard doctype the page validates, but as I am trying to have the page validate to HTML5 I get the following errors.

    ---

    Validation Output: 28 Errors

    Error Line 8, Column 36: Bad value owner for attribute name on element meta: Keyword owner is not registered.

    <meta name="owner" content="admin@">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 9, Column 43: Bad value copyright for attribute name on element meta: Keyword copyright is not registered.

    <meta name="copyright" content="copyright">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 11, Column 35: Bad value language for attribute name on element meta: Keyword language is not registered.

    <meta name="language" content="en">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 14, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 16, Column 38: Bad value expires for attribute http-equiv on element meta.

    <meta http-equiv="expires" content="">


    Error Line 18, Column 57: Bad value content-style-type for attribute http-equiv on element meta.

    <meta http-equiv="content-style-type" content="text/css">


    Error Line 19, Column 65: Bad value content-script-type for attribute http-equiv on element meta.

    <meta http-equiv="content-script-type" content="text/javascript">


    Error Line 20, Column 49: 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="en">


    Error Line 26, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 27, Column 38: Bad value geo.placename for attribute name on element meta: Keyword geo.placename is not registered.

    <meta name="geo.placename" content="">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 28, Column 37: Bad value geo.position for attribute name on element meta: Keyword geo.position is not registered.

    <meta name="geo.position" content="">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 29, Column 29: Bad value ICBM for attribute name on element meta: Keyword icbm is not registered.

    <meta name="ICBM" content="">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 31, Column 50: Bad value DC.title for attribute name on element meta: Keyword dc.title is not registered.

    <meta name="DC.title" lang="en" content="General">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 33, Column 45: Bad value DC.creator for attribute name on element meta: Keyword dc.creator is not registered.

    <meta name="DC.creator" content="DC.creator">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 34, Column 55: Bad value DC.subject for attribute name on element meta: Keyword dc.subject is not registered.

    <meta name="DC.subject" lang="en" content="DC.subject">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 35, Column 63: Bad value DC.description for attribute name on element meta: Keyword dc.description is not registered.

    <meta name="DC.description" lang="en" content="DC.description">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 36, Column 49: Bad value DC.publisher for attribute name on element meta: Keyword dc.publisher is not registered.

    <meta name="DC.publisher" content="DC.publisher">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 37, Column 53: Bad value DC.contributor for attribute name on element meta: Keyword dc.contributor is not registered.

    <meta name="DC.contributor" content="DC.contributor">

    Syntax of metadata name:
    A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 38, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 38, 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 39, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 39, 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 40, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 41, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 42, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 42, 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 43, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.

    Error Line 44, 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 metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.



    ---
    Last edited by jasonpc1; 07-10-2011 at 05:32 PM.

  • #4
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    all those meta tags are unnecessary

    Code:
    <meta name="description" content="Adhesives, Barbecue Accessories, Barbecues, Bin Fresheners, Camping Furniture, Chimeneas, Coolbags, Decorating Aids, Door Curtains, Fans, Fertilisers, Fillers, Garden Electrical, Garden Essentials, Garden Landscaping, Garden Lighting, Garden Ornaments, Garden Planters, Garden Watering, Garden Woodcare, Gardening Tools, Kitchen Essentials, Ladders, Lanterns, Laundry, Lawncare, Lunch On The Go, Outdoor Living, Paint Remover, Paints, Pest Control, Picnicware, Plantcare, Specialist Paints, Travel Essentials, Varnishes, Weedkillers" />
    <meta name="keywords" content="xyz" />
    <meta name="owner" content="admin@" />
    <meta name="copyright" content="copyright" />
    <meta name="author" content="author" />
    <meta name="language" content="en" />
    <meta name="rating" content="General" />
    <meta name="robots" content="index,follow" />
    <meta name="revisit-after" content="2 days" />
    
    <meta http-equiv="expires" content="" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-style-type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <meta http-equiv="Content-language" content="en" />
    
    
    <link rel="shortcut icon" href="Image2.gif" />
    <link rel="alternate" type="application/rss+xml" title="RSS feed" href="http://www.site.com/rss.php" />
    
    <meta name="geo.region" content="GB" />
    <meta name="geo.placename" content="" />
    <meta name="geo.position" content="" />
    <meta name="ICBM" content="" />
    
    <meta name="DC.title" lang="en" content="General" />
    
    <meta name="DC.creator" content="DC.creator" />
    <meta name="DC.subject" lang="en" content="DC.subject" />
    <meta name="DC.description" lang="en" content="DC.description" />
    <meta name="DC.publisher" content="DC.publisher" />
    <meta name="DC.contributor" content="DC.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" />
    Code:
    <meta name="description" content="Adhesives, Barbecue Accessories, Barbecues, Bin Fresheners, Camping Furniture, Chimeneas, Coolbags, Decorating Aids, Door Curtains, Fans, Fertilisers, Fillers, Garden Electrical, Garden Essentials, Garden Landscaping, Garden Lighting, Garden Ornaments, Garden Planters, Garden Watering, Garden Woodcare, Gardening Tools, Kitchen Essentials, Ladders, Lanterns, Laundry, Lawncare, Lunch On The Go, Outdoor Living, Paint Remover, Paints, Pest Control, Picnicware, Plantcare, Specialist Paints, Travel Essentials, Varnishes, Weedkillers" />
    <meta name="keywords" content="xyz" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="Image2.gif" />
    <link rel="alternate" type="application/rss+xml" title="RSS feed" href="http://www.site.com/rss.php" />
    <meta http-equiv="Content-language" content="en" />
    there we go
    Last edited by Sammy12; 07-10-2011 at 07:19 PM.

  • #5
    Regular Coder
    Join Date
    Apr 2010
    Posts
    417
    Thanks
    4
    Thanked 1 Time in 1 Post
    the reason i wanted to have the geo.region is for google to know where the company is located.

  • #6
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    what is the company for? most likely not necessary

  • #7
    Regular Coder
    Join Date
    Apr 2010
    Posts
    417
    Thanks
    4
    Thanked 1 Time in 1 Post
    google maps uses the geo.region and other tags for the location of any companies.

    what is the correct meta tag for this so it validate to HTML5 ?

    for HTML4.01 it is working but does not for HTML5 ?

  • #8
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by jasonpc1 View Post
    google maps uses the geo.region and other tags for the location of any companies.

    what is the correct meta tag for this so it validate to HTML5 ?

    for HTML4.01 it is working but does not for HTML5 ?
    Not necessarily true. For example, Google knows The Guardian is a British paper, despite no such meta tag being present on the page.

  • #9
    Regular Coder
    Join Date
    Apr 2010
    Posts
    417
    Thanks
    4
    Thanked 1 Time in 1 Post
    I have been using woorank.com which says that (I correct myself) Although Google™ ignores Geo-Meta Tags, the search engine Bing takes them into account.

    also the Dublin Core tags are useful.

    How would I be able to use these with HTML5 ?

    Or will these and a lot of other tags just be depricated.

  • #10
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,675
    Thanks
    6
    Thanked 1,007 Times in 980 Posts
    Quote Originally Posted by Sammy12 View Post
    all those meta tags are unnecessary

    […]

    there we go
    In fact, in HTML 5 the content-type meta element has been “shortened” to <meta charset="…" />. And it is generally recommended to use UTF-8 for greatest compatibility.


  •  

    Posting Permissions

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