Which of the following property is used to change the width of table?

width
table
table-width
resize

The correct answer is A. width.

The width property is used to set the width of an element. It can be used to set the width of a table, a table row, or a table cell.

The table property is used to create a table. It does not have any effect on the width of the table.

The table-width property is used to set the width of a table. It is deprecated in HTML5 and should not be used.

The resize property is used to allow the user to resize an element. It does not have any effect on the width of the element.

Here is an example of how to use the width property to set the width of a table:

“`html

This is a table

“`

This code will create a table that is 500 pixels wide.

Exit mobile version