1 reply [Last post]
tzug
Offline
Regular
Last seen: 15 years 46 weeks ago
Joined: 2004-09-28
Posts: 21
Points: 0

i've seen someone usind this :

Quote:

<tr>
<td width="1111111"/>
</tr>

its a way to write an empty TD.
i've tested the <td/> and it is valid !
can i use this ??

Tags:
roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 7 years 3 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

about using &lt;td/&gt;

Good question. I'm no expert but according to the W3C, the TD end tag is optional, which AFAIC means that strictly speaking you should not need the XHTML-style slash before the > if you want to use the TD start tag on its own. But in practice you will probably find that most browsers will not be able to cope with just an opening tag on its own, legal or otherwise (unless anyone else knows different).

Life's a b*tch and then you die!