Table cellspacing

The cellspacing attribute of table is not supported in HTML5. The cellspacing attribute specifies the space, in pixels, between cells. For controlling cellpadding in CSS, you can simply use padding on table cells. By default, table cells tend to be squeezed close to each other.

To give your table cells a little more breathing room, use. Attribute of: table; What does table cellspacing= do? Was used to specify the distance between the individual cells of an HTML table.

La balise HTML et XHTML TABLE englobe ces ba Ses attributs sont attribut align. Il faudra utiliser la balise tr pour créer une nouvelle ligne dans le tableau. The example below should look the same as the previous one.

Tables without adequate spacing in or around cells are difficult to read. The cell padding attribute places spacing around data within each cell. Get a full explanation, examples, and browser compatibility matrix at the SitePoint HTML .