HTML <Table> Width Attribute
The width attribute is used to change the width of table, it tells the browser how much horizontal space should be covered by the table. The width attribute can support values in pixels and percentage but its a good practice to use percentage instead of pixels. Assigning values in pixels is not suggested as the computers have different resolution setting, so it may create problems.
Here is the HTML code for setting the width of table in percentage using the table width attribute.
The html code will show the below result on browser.