HTML width attribute
Example
Two elements with predefined widths:
| Month | Savings |
|---|---|
| January | $100 |
| February | $80 |
Try it »
Browser support





All major browsers support the width attribute, but no browser supports relative_length values.
Definition and Usage
HTML5 no longer supports the width attribute.
The width attribute specifies the width of the col element.
Normally, the space occupied by a col element is the space needed to display its content. The width attribute is used to set a predefined width for the col element.
Note: This attribute overrides any width setting in the element.
HTML Tag