+ Reply to Thread
Results 1 to 8 of 8

Thread: Validation of html

  1. #1

    Default Validation of html

    I cannot get my code to validate on the W3C website because I have 3 meta tags related to search engines.

    These have been inserted for the relevant engines to acknowledge my site and track results.

    Everyone else appears ok with no errors.

    Can I put up that my site is valid even though the results say no?

    I want to include an accessibility page but don't want to look like a fraud!

  2. #2

    Default

    I think your site is failing validation because you have not used self-closing tags.

    For example,

    <META name="y_key" content="b51dae87e69cb106" > should be
    <META name="y_key" content="b51dae87e69cb106" />

    Several of your META tags and LINK REL tags have the "/" missing.

    Change them all to self-closing and re-run the validator.

  3. #3

    Default

    Hi

    I have already corrected that and it still doesn't work.

    the validator is telling me the problem is being found

    <META name="y_key" content="b51dae87e69cb106" />

    at the point I have made bold

    *note I have been using the file upload version of the validator and not the one you can see online at the moment

  4. #4

    Default

    I don't think there is anything wrong with that element (I think you can put what you like as a meta as long as it is properly formed). Just my thoughts, could be wrong.

    Sometimes I have noticed the actual error can be elsewhere on the page but it has a knock on effect on other, properly formed elements.

    But without seeing the code can't be sure.

  5. #5

    Default

    hi James

    Do you think you can take a glance at the homepage now?

    I have put up the version that is causing me trouble.

    Baffled!

    Rob

  6. #6

    Default

    Got it. XHTML is case sensitive, so it's not recognising META. Change it to meta.

    See: http://www.w3.org/TR/xhtml1/#h-4.2 which states:

    4.2. Element and attribute names must be in lower case

    XHTML documents must use lower case for all HTML element and attribute names. This difference is necessary because XML is case-sensitive e.g. <li> and <LI> are different tags.


    The validator error report does tell you to check the case, but it's easily missed.
    Last edited by James; 5th Jul 2008 at 06:57 am.

  7. #7

    Default

    thanks James! you would have thought Yahoo would know better than to give us tags in caps!

  8. #8

    Default

    You do have to check imported code from all services when you add it to your pages. I've noticed that Google are particularly bad at this.
    Perhaps late-night surfing is not such a waste of time after all: it is just the Web dreaming. Tim Berners-Lee
    Currently listening to: The Lion's Roar by First Aid Kit

+ Reply to Thread

Similar Threads

  1. Understanding HTML5 Validation
    By Impressive Webs in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 28th Dec 2010, 03:01 pm
  2. Forward Thinking Form Validation
    By A List Apart in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 14th Oct 2010, 02:45 pm
  3. Validation matters
    By 456 Berea Street in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 27th Sep 2010, 08:41 pm
  4. Validation statistics from Nikita the Spider
    By 456 Berea Street in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 30th Apr 2008, 07:06 am
  5. Validation alone is not enough
    By 456 Berea Street in forum Web Design RSS Feeds
    Replies: 0
    Last Post: 16th Feb 2007, 02:28 pm

Bookmarks

Posting Permissions

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