Example. An HTML table with a width of 400 pixels: ... width of a table. If the width attribute is not set, a table takes up the space it needs to display the table data.
www.w3schools.com