W3C Validation Solutions

Converting traditional/old HTML code to CSS friendly alternatives to achieve W3C validation.

Error: The frameborder attribute on the iframe element is obsolete. Use CSS instead.

iframe { border: none; }

Error: The cellspacing attribute on the table element is obsolete. Use CSS instead.

eg. cellspacing=”10″

table { border-collapse:separate; border-spacing:10px; }

Note: border-collapse has to be set to separate on the table element for this to work.

eg. cellspacing=”0″

table {border-collapse:collapse;border-spacing:0;}




This entry was posted in computing, web development. Bookmark the permalink.

Leave a Reply