EDIT:
To do the direct style in the tag you can use style=""
to put width
It will look like this:
<table border="1">
<tr>
<td style="width:100px">100px</td>
<td style="width:200px">200px</td>
</tr>
</table>
RBZ I believe that in this link the source refers to the width
direct in the type tag:
<td width="100px"> isso é errado mesmo!
Notice that all link attributes are properties of the <td>
tag such as colspan
, nowrap
, align
etc. This does not refer to width
of CSS!
Words from Mozilla documentation: link
Usage Note: Do not use this attribute, as it has been deprecated. The rules should be defined and styled using CSS . Use the width
property instead.
That is, use width
for CSS. As in the example below.
.gg {
width: 100px;
}
.ggg {
width: 200px;
}
<table border="1">
<tr>
<td class="gg">100px</td>
<td class="ggg">200px</td>
</tr>
</table>