Submit Your Article Forum Rules

Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: HTML validation help

  1. #1

    HTML validation help

    I don't know if this is the correct forum for this question, but I didn't know where else to put it.

    I've been working on my html validation, because I never really paid attention to it, until I started to use Firefox and Safari, and I really want to have a validated html code.

    Well, I went from over 70-80(!) errors to 2. I'm kinda happy with that, but 2 is still too much. I've tried everything to correct these 2 errors, but nothing works, so I'm hoping someone here can help me.

    Here's the link with the errors and my url:
    Validation Page
    For all your typical Dutch products
    info@typicaldutchstuff.com

    Our website was featured in the UK Sunday Times of October 10th

  2. #2
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    First error is easiest to fix...
    you have two body tags! :o)

    Quote Originally Posted by W3C Validator
    21: <body>
    22: <body bgcolor="#F9E5F1">

  3. #3
    Senior Member
    Join Date
    Nov 2004
    Posts
    145
    You have two body tags, you need to remove one of them.

    Code:
    <body>
    <body bgcolor="#F9E5F1">

  4. #4
    Senior Member
    Join Date
    Nov 2004
    Posts
    145
    haha sorry paul, was posted the same time as you.

  5. #5
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    LOL!! Think we collided mid-air! I felt some sort of collision anyway! :o)

  6. #6
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    Error number two...
    Line 26: Try this.....

    <td colspan="2" bgcolor="#F5AFD5" height="90" width="750">[img]Websitepics/bannner.png[/img]</td></tr>

    An alternate solution might be to use CSS to load the background image, and might save you a few bytes. Are you using the same image for each page header?

    Paul

  7. #7
    thanks so much you guys, my page is now valid! How would I use CSS to load the background image? I'm using the same one for every page.

    Another thing, before the page was validated (and had loads of errors), the page looked perfect in IE; the text was aligned to the left. In Firefox it was a bit different; it was centralized. Now with the valid html it looks perfect in Firefox and in IE it looks like it was before with Firefox. (hope this makes sense) How is this possible?
    For all your typical Dutch products
    info@typicaldutchstuff.com

    Our website was featured in the UK Sunday Times of October 10th

  8. #8
    Senior Member
    Join Date
    Nov 2004
    Posts
    145
    Looks like you've gotten everything taken care of.

    You are quick!

  9. #9
    Thanks you guys!

    you know what's strange; in IE my pages look crappy when validated and they look perfect in Firefox/Safari, whilst this first was the other way around. Does IE just not accept the html?
    For all your typical Dutch products
    info@typicaldutchstuff.com

    Our website was featured in the UK Sunday Times of October 10th

  10. #10
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073

    Invalid tags in your CSS stylesheet

    Hi wen_laat,

    try using the following as your style.css

    /* Stylesheet for TypicalDutchStuff */
    a:link {
    color:#333333;
    text-decoration:none;
    }
    a:visited {
    color:#333333;
    text-decoration:none;
    }
    a:active {
    color:#333333;
    text-decoration:none;
    }
    a:hover {
    color:#FF4040;
    text-decoration:none;
    }

    body, tr, p, td {
    font-size:8pt;
    font-family:verdana;
    color:#000000;
    }

    .heading {
    text-align:center;
    font-size:9pt;
    font-family:verdana;
    font-weight:bold;
    color:#000000;
    }


    I noticed you have some code comments and <style> tags that are causing some discrepancies between the Firefox view and IE. Check and debug any differences after you've uploaded this modified stylesheet.

    Paul

Page 1 of 2 12 LastLast

Similar Threads

  1. HTML Validation
    By JBWEnterprise in forum Search Engine Optimization Forum
    Replies: 7
    Last Post: 01-25-2009, 11:47 PM
  2. Stuck in HTML Validation !!!!
    By subho in forum Graphics & Design Discussion Forum
    Replies: 4
    Last Post: 06-13-2006, 05:34 AM
  3. HTML Validation
    By panic36 in forum Web Programming Discussion Forum
    Replies: 3
    Last Post: 05-12-2006, 03:54 AM
  4. CMS and HTML Validation
    By Jerry in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 03-12-2005, 08:26 AM
  5. HTML Validation
    By razsports in forum Web Programming Discussion Forum
    Replies: 4
    Last Post: 02-01-2005, 04:12 PM

Posting Permissions

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