WordPress.org

Ready to get started?Download WordPress

Forums

Html errors (12 posts)

  1. susiej
    Member
    Posted 7 years ago #

    Can someone please take a look to find out why I create so many html errors when I post to my site? It's at http://www.susiej.com/wordpress
    Thanks

  2. moshu
    Member
    Posted 7 years ago #

    Mainly 2 things:
    - in the code you got from amazon and any third party you should replace every "&" with &
    (that will cvut half of the errors)
    - the other half is caused by your <font> tags. There is no need to thinker with those...

    BTW, there is always a description of the error, followed by a suggestion how to fix it. And if you check the Show Source box and click Revalidate > every error line will become a link taking you to the exact location of the error in your source code.

  3. susiej
    Member
    Posted 7 years ago #

    Thank you! To fix the font tags, do I need to delete every entry and retype them -- or can I just go into the "edit Post" click on the html editor and delete the font tags?

  4. moshu
    Member
    Posted 7 years ago #

    You can delete just the font tags. It is even easier if you disable the wysiwyg monster :)
    (admin > Users > Your profile - left bottom corner)

  5. susiej
    Member
    Posted 7 years ago #

    Thanks -- very happy!

  6. Inspired2Write
    Member
    Posted 7 years ago #

    Hi,
    I've had some of the same mark-up validation problems with links from Amazon, and also with my stat counter code from Dreamhost.

    Is there not a code to wrap around those to fix the problem so they validate?

  7. susiej
    Member
    Posted 7 years ago #

    Hi, I just replaced every & with &amp in the Amazon code, and now instead of the link, it shows a corner of the white internet page that says "this site is unavilable" instead of the link. http://www.susiej.com/wordpress.

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Is there not a code to wrap around those to fix the problem so they validate?

    Not really. The code Amazon generates (as do many, many other sites) is invalid XHTML. Doesn't get much more simple than that. Really the best you can do is to correct the problems in their code.

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    susiej: Not "&amp". The correct code is "&amp;". The ending semicolon is important.

  10. susiej
    Member
    Posted 7 years ago #

    Ok -- got that. Fixed that, but what is the "src" error I'm gettiing in the Amazon code?

  11. Inspired2Write
    Member
    Posted 7 years ago #

    Thanks Otto42...

    for pointing out the correct code is & including the semi-colon. I missed that on correcting my stat counter codes, but now that I added it in correctly I've eliminated all but one error in my stat counter code.

    Susiej,

    Did you get the 'src' error corrected? It looks like you have all your Amazon links up and working now.

  12. susiej
    Member
    Posted 7 years ago #

    I'm still getting the errors when I run the check. However the links are shwoing up OK. Is it OK to have these errors?

Topic Closed

This topic has been closed to new replies.

About this Topic