Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

http://validator.w3.org/

Options
  • 21-06-2006 12:12pm
    #1
    Registered Users Posts: 673 ✭✭✭


    Hey,

    Im using the w3 validator for the first time. Can someone explain what it means when it underlines and changes the font of the error to red. Does this mean it shouldnt be their?

    For example, this line of code has a "there is no attribute HEIGHT" error:
    <table width="780" height=(")50" border="0" cellpadding="0" cellspacing="0">

    I have placed brackets around the " where the error is. So whats wrong with this?????? Or is it something like the dimensions arent specified?


Comments

  • Registered Users Posts: 2,157 ✭✭✭Serbian


    It means that the attribute 'Height' is invalid for table in the Doctype you are using. You can remove the height from the table and set it via CSS instead:
    <table cellpadding="0" cellspacing="0" id="someTable"></table>
    
    ...
    
    #someTable {
       border: 0;
       height: 50px;
       width: 780px;
    }
    


  • Registered Users Posts: 673 ✭✭✭Bananna man


    Man, at some point im going to have to stop ignoring css :mad: I use it for fonts and page properties at the moment but thats it


  • Registered Users Posts: 2,423 ✭✭✭pburns


    Maybe external CSS is the answer? That way the HTML is nice n'clean(ish)


Advertisement