Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

http://validator.w3.org/

  • 21-06-2006 12:12PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 2,203 ✭✭✭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, Registered Users 2 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, Registered Users 2 Posts: 2,419 ✭✭✭pburns


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


Advertisement