I built a table like this:
<table width="100%" border="0">
<tr>
<td width="20%">
Nombre
</td>
</tr>
</table>
but I have a warning "Validation (XHTML 1.0 Transitional): Attribute 'width' is considered outdated. A newer construct is recommended"
What is a Newer construct for width in XHTML?
The width
attribute for <td>
has been deprecated.
You should replace the width
attribute with the CSS width
property:
<table width="100%" border="0">
<tr>
<td style="width: 20%;">
Nombre
</td>
</tr>
</table>
Use only CSS attributes:
<table style="width:100%; border:0px;">
<tr>
<td style="width:20%;">
Nombre
</td>
</tr>
</table>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With