Page 102 - Computer Class 08
P. 102
And the table looks like this in the webpage.
Cellpadding and Cellspacing Attributes
Cellpading and cellspacing are the attributes used in tables formatting, it actually sets the
whitespaces in your table cells. These are the significant properties of a web document. The
main differences between cellpadding and cellpacing is that the cellpadding is used to fix the
width between cellpadding and cellspacing is that the cellpadding is used to fix the width
between the cell edge and its content. Conversly, the cellspacing sets the space between the
single cells.
The width of these attributes can be measured by using pixels or percentage. For adjusting
the space between text and surrounded cell wall, cells and cells width a table tag, the
attributes such as cellpading and cellspacing are used.
Look at the example given below.
<html>
<head>
<title>HTML Table Cellpadding</title>
</head>
<body>
<table border=“1” cellpadding=“5” cellspacing=“5”>
Computer-8 102