Jump to content

Validation Conundrum


Recommended Posts

I'm getting this in a validation check on several pages, and for the life of me I cannot figure out what's wrong. It has to do with an "attribute". Here's the error message in my checker:The tag: "table" doesn't have an attribute: "table" in currently active versions.[XHTML 1.0 Transitional]It's referencing line 147. Here's that piece of code:

<td width="500" align="center" valign="top" class="testimonials-bkg"><div class="testimonials" style="overflow:auto; width:500px; height: 602px;"><table width="445" border="0" cellspacing="0" cellpadding="12" table rules="rows">

I must be missing something, can anybody help?

Link to post
Share on other sites

I don't get what you're trying to do there. Can you post the entire table code? You should be doing something like this:

<table>  <tr>	<td></td> 	<td></td>  </tr>  <tr>	<td></td>	<td></td>  </tr></table>

Link to post
Share on other sites
I'm getting this in a validation check on several pages, and for the life of me I cannot figure out what's wrong. It has to do with an "attribute". Here's the error message in my checker:I must be missing something, can anybody help?
<table ... table rules="rows">

Don't know where that came from, but it adds a boolean attribute named "table", which doesn't exist in any spec.

Edited by Dilated
Link to post
Share on other sites

If I had to guess, I'd say this was a copy/paste that got incorrectly altered? What you really want to do is add CSS rules for your table and td elements. What you think of as rules translate into the CSS border property of the <td> element. Borders tend to work best when the CSS border-collapse rule is set also.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...