Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML col width attribute

HTML width attribute

HTML col Tag Reference HTML Tag

Example

Two elements with predefined widths:

 

 

 

   

   

 

 

   

   

 

 

   

   

 

Month Savings
January $100
February $80

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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.


Syntax

HTML tag