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
In the data parallel model, many of the parallel work focus on performing operations on a data set. The data set is usually organized into a common structure, such as an array or a

Q. What are the limitations of a cyclotron? Limitations (i) Maintaining a consistent magnetic field over a large area of the Dees is difficult. (ii) At high rapidity

Explain the violating basic security principles There are drawbacks to permitting users to access the Intranet as well as not permitting them. A simple consideration such as a

Quantifiers and Variables - propositional model: There is one question is arrives that 'What do sentences containing variables mean?' In other way of words, how does a first-o

Reg data type as Sequential element module reg_seq_example( clk, reset, d, q); input clk, reset, d; output q; reg q; wire clk, reset, d; always @ (posedge clk or

Define exception. The term exception is used to transfer to any event that causes an interruption


Explain the differences between Paging and segmentation. Paging and segmentation P aging Segmentation Computer memory is separa

Q. Define the Register Addressing mode? When operands are taken from registers implicitly or explicitly it is known as register addressing. These operands are termed as regis

Creation Deductive Inferences : Here we have shown how knowledge can be represented in first-order logic or how rule-based expert systems expressed in logic can be constructed