Skip to content Skip to sidebar Skip to footer

Can A Td Be Inside A Td

It may be a nonsense question, and I know we have to follow standards as much as possible. But can be a direct child of another , like this: Copy

Solution 2:

No, <td> may not be a child of a <td>. A <td> may only be a child of a <tr>.

Solution 3:

it's better to create a new table tag.

The example you give is not standard and the behavior can be different from a browser to another one

Solution 4:

The problem with not following standards like putting a <td> tag inside a <dt>, is that you cannot guarantee that the result is the same for all browsers, or that the next update of any browser will for example not simply ignore wrongly-used tags.

As a sidenote: we, as a developer comunity, have cried and shouted for Internet Explorer to finally start to take the standards seriously, so now let's not start making a mess ourselves!

Post a Comment for "Can A Td Be Inside A Td"