Results 1 to 7 of 7

Thread: Validation problems

  1. #1
    Join Date
    Feb 2009
    Posts
    50
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default Validation problems

    Hi,

    I've been trying to validate my coding but I have quite a few errors that are confusing me. I think that part of the problem may be my header.php file. I think the tags and what not are out of place. Could someone please take a look and let me know exactly how it should be set up. If this is not the reason for some of my validation errors, let me know if you could. Html has never been my strong point but I'm trying. Thanks!

    My website is : http://vivid-avenue.net.
    Last edited by sparklingsky; 06-10-2009 at 04:45 PM.

  2. #2
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    Nothing to do with your head, it's your BODY. You're coding to a different DOCTYPE, instead of xHTML transitional, you want HTML transitional. Below is for xHTML, and how to fix it.

    Plus, there's just a few errors, like the ID can only be used once, I noticed one of the errors is from using the ID wrapper more than once.

    You also have a empty TITLE tag in your Body, that's causing an error.

    And all IMG tags need an ALT attribute. Simply add alt="" to all your IMG tags.

    You also have a bunch of end tags, which aren't open... For example, you have an </a> tag, but there's not any <a> tags open.

    And for your Doctype, you need to end IMG tags like this: />. Otherwise you'll get a bunch of errors. Same with <br> tags.

    There's also a place or two where you have <Posted By, which it parses as an HTML tag, try using &lt; Posted By instead. Once you fix that, it'll get rid of a bunch of errors below it.

    Hope this helps.

    // X96 \\
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  3. #3
    Join Date
    Feb 2009
    Posts
    50
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    Ah thanks so much, so far I've gotten down to 21 errors. I just had a question. You said I had </a> but no <a> tag was open. I used </a> to end my links, should I be using something else? Because I'm pretty sure all of the </a>'s in my coding are closing a link tag. I'm just bit confused about that.

    Again, thank you so much.

  4. #4
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    You're using the right syntax, but maybe in the wrong way. There are certain tags that are "block" tags, and "inline" tags. an H2 element is a Block, and an A is an inline. And inline tag cannot have a block tag inside of it, or it will produce an error.

    So check that you don't have this:
    Code:
    <a href="link.html"><h2>Header Title</a></h2>
    That will produce a whole bunch of errors. Fix it by using this:
    Code:
    <h2><a href="link.html">Header Title</a></h2>
    Hope this helps...

    // X96 \\
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  5. The Following User Says Thank You to X96 Web Design For This Useful Post:

    sparklingsky (06-10-2009)

  6. #5
    Join Date
    Feb 2009
    Posts
    50
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    Oh okay, I see what you mean. I believe that I've corrected that. Another error I seem to be seeing quite often in this list is "end tag for "div" omitted, but OMITTAG NO was specified" I'm not sure what is meant by this.


    Thanks!

  7. #6
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    Basically, it means you have a <DIV> tag, but no </DIV> tag to end it. Make sure that all your DIV tags have an accompanying </DIV> tag.

    Also, just 'cuz I wrong in uppercase - don't. If you write in uppercase, it'll show as an error.

    Cheers,
    X96
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  8. #7
    Join Date
    Feb 2009
    Posts
    50
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    Oh okay, I see. I believe that I have fixed everything and my coding is VALIDATED. Thank you SO much.

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
  •