Explain cell spacing and cell padding, Computer Engineering

Q. Explain Cell Spacing and Cell Padding?

Couple of attributes known as CELLSPACING and CELLPADDING. Both are part of <TABLE>tag. CELLPADDING is the amount of space between border of cell and the contents of the cell. Default value for this attribute is 1. This is so that any text in cells doesn't appear to be sticking to the border. Though, you can specify a value of 0 if you wish. CELLSPACING attribute has a somewhat different meaning. It determines spacing between adjacent cells. Its default value is 2. The below illustration displays these and some other significant attributes of <TABLE> tag.

<HTML>

<HEAD>

<TITLE> EXPERTSMIND.COM</TITLE>

</HEAD>

<BODY>

First: Table with cellspacing and cellpadding

<TABLE BORDER=3 CELLSPACING=7 CELLPADDING=7>

<TR>

<TD>Bella</TD>

<TD>Tom</TD>

<TD>Lee</TD>

</TR>

<TR>

<TD>Adom</TD>

<TD>Herry</TD>

<TD>ketty</TD>

</TR>

</TABLE>

Second: Table with colspan

<TABLE BORDER=1>

<TR>

<TD COLSPAN=2>Bella</TD>

<TD>Tom</TD>

</TR>

<TR>

<TD>Herry</TD>

<TD>Adom</TD>

<TD>Lee</TD>  </TR> 

</TABLE>

Third: Table with rowspan

<TABLE BORDER=1>

<TR>

<TD ROWSPAN=2>Bella</TD>

<TD>Tom</TD>

<TD>Lee</TD>

</TR>

<TR>

<TD>Adom</TD>

<TD>Ricky</TD>

</TR>

</TABLE>

Fourth: Table with rowspan and colspan

<TABLE BORDER=1>

<TR>

<TD ROWSPAN=2>Bella</TD>

<TD COLSPAN=2>Tom</TD>

</TR>

<TR>

<TD>Adom</TD>

<TD>Lee</TD>

</TR>

</TABLE>

Fifth: Table with strong tag and a link in cell's data

<TABLE BORDER=1>

<TR>

<TD COLSPAN=3

ALIGN=CENTER><STRONG><AHREF="http://EXPERTSMIND.COM.org/">Bella</STRO

NG>

</TD>

</TR>

<TR>

<TD>Tom</TD>

<TD>Herry</TD>

<TD>Adom</TD>

</TR>

</TABLE>

</BODY>

</HTML>

2326_Explain cell spacing and cell padding.png

Figure Some Important Attributes of the Table Tag Family

Posted Date: 8/28/2013 3:12:13 AM | Location : United States







Related Discussions:- Explain cell spacing and cell padding, Assignment Help, Ask Question on Explain cell spacing and cell padding, Get Answer, Expert's Help, Explain cell spacing and cell padding Discussions

Write discussion on Explain cell spacing and cell padding
Your posts are moderated
Related Questions
Explain the different page replacement policies. Various page replacement algorithms are briefly explained below: 1. First-in, first-out FIFO page replacement algorith

A Network uses a star topology if? A Network utilizes a star topology if all computers attach to a single central point.

How the transaction that are programmed by the user can be protected? By executing an authority check.


A disk drive with removable disks is known as removable drive. A removable disk can be replaced by other similar disk on same or different computer so providing huge data storage w


Explain difference of Circuit switching versus Packet switching. Within circuit switching an end-to-end path is to be establishing before any data can be sent. Previously a con

Driver software is software that works as a translator among another program and some piece of hardware. In the software industry, there are commonly standard ways to do things. Th

Example Multi-layer ANN with Sigmoid Units - Artificial intelligence: We will discuss ourselves here with ANNs containing only 1 hidden layer, as this makes describing the back