Table width defined by styling or by width attribute, which is not
deprecated but users are encouraged to use width property.
Browser support of width styling property is now good in standards mode
- width
- Defines the overall width of the table as a percentage or in pixels. If not provided, the
contents decides the size. Similar to images
<table width="80%">
My First Table
| First Heading |
Second Heading |
| First Row One |
Second Row One |
| First Row Two |
Second Row Two |
<table width="600">
My First Table
| First Heading |
Second Heading |
| First Row One |
Second Row One |
| First Row Two |
Second Row Two |