Basic HTML

 
 
          

Table >> Resizing

 

Resizing a Table

To resize a table, we will use the property of table 'width='


The figure below shows how to resize a table:

HTML Code Description Sample Output
<table border=1 width=50>
<tr>
<td>Head
<tr>
<td height=100>Body
</table>
  • A table which width is 50 pixels
  • Table border is 1
  • Head
    Body
    <table border=1 width=100>
    <tr>
    <td>Head
    <tr>
    <td height=100>Body
    </table>
  • A table which width is 100 pixels
  • Table border is 1
  • Head
    Body

    Table >> Border Table >> Background