How Cell Padding is differ from Cell Spacing? ,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
How Cell Padding is differ from Cell Spacing?

 I have given you how cell padding is differ from cell spacing given below:

Cell Padding: Cell Padding in HTML: is used to define the how much space need b/n cell content and cell edges.

Syntax:

< table width=\"200\" border=\"1\" cellpadding=\"3\">


means that it takes 3 pixels of padding inside the each cell.

Cell Spacing: It is also used to format the table.but it differ than cell padding because in cell padding we can set an extra space to separate the cell content with cell edges.Where as we use cell spacing to set the space b/w the cells.

Syntax:
< table width=\"200\" border=\"1\" cellspacing=\"10\">


We can use cell padding and cell spacing together like that,

< table width=\"200\" border=\"1\" cellpadding=\"3\" cellspacing =\"10\">

More interview questions and answers
How you define HTML link?
What are the Hyperlink,Anchors and Link in the HTML?
How you define href,target and name Attributes?
How to link the Images with in HTML?
How we define Src Attribute and Alt Attribute in HTML?
How to create tables in HTML?
How to create headings and empty cells in table?
Write some useful table tags that we use in HTML?
How you define list in HTML?
What\'s Java Swing?
What is JFC?
What is AWT?
What are the differences between Swing and AWT?
What are heavy weight components ?
How you understand about Forms output?
What is lightweight component?
What is double buffering ?
What is an event in Swing?
What is an event handler in swing?
What is a layout manager?
How you use Text Field,Radio Button and Checkbox in Form?
What is clipping?
Which containers use a border Layout as their default layout in swing?
What is the preferred size of a component?
What method is used to specify a container\'s layout?
Which containers use a FlowLayout as their default layout?
How you use Form\'s Action Attribute and Submit Button in HTML?
How you define HTML Frames?
Which method of the Component class is used to set the position and size of a component?
How you use scipts on HTML?
What is the What is the difference between invokeAndWait() and invokeLater()? ?
Why should any swing call back implementation execute quickly?
What is an applet?
What is the difference between applications and applets?
How to blink text in IE6?
How to differ width=\'200\' and width=\'200%?
Which method is used by the applet to recognize the height and width?
When we should go for codebase in applet?
What is the lifecycle of an applet?
Which method is used for setting security in applets?
What is an event and what are the models available for event handling?
What is Semantic in HTML?
How you display an picture in background of HTML?
What are the advantages of the event-delegation model over the event-inheritance model?
How you define body in HTML?
How you define SPAN in HTML?
How you define HEAD in HTML?
How you define index document?
How Cell Padding is differ from Cell Spacing?
What do you understand about DOCTYPE in HTML?
Can a class be it\'s own event handler? Explain how to implement this?
How you define CSS?
Why does JComponent have add() and remove() methods but Component does not?
How would you create a button with rounded edges?
What is the difference between the Font and FontMetrics class?
What class is at the top of the AWT event hierarchy?
How we use CSS?
Explain how to render an HTML page using only Swing?
How would you detect a keypress in a JComboBox?
Why should the implementation of any Swing callback (like a listener) execute quickly?
In what context should the value of Swing components be updated directly?
Why would you use SwingUtilities.invokeAndWait or SwingUtilities.invokeLater?
If your UI seems to freeze periodically, what might be a likely reason?
Which Swing methods are thread-safe?
Why won�t the JVM terminate when I close all the application windows?
How you define grouping in CSS?
How you define class Selector?
How you define id Selector?
How to set CSS comment?
How you insert Style Sheet in the HTML document?
How to set background with CSS?
How to set CSS font?
How to create CSS Border?
How to set CSS Outlines?
How you define CSS Margin?
How you define CSS Padding?
What is double buffering ?
How you define relationships b/w CSS and HTML?
How you define CSS,CSS2 and CSS3?
How you define floating element in CSS?
How you define ruleset inCSS?
How you define First-line pseudo-element in CSS?
How you define at-rule in CSS?
Tell me about types of CSS rule?
What are the advantages of CSS?
Is CSS case-sensitive or not?
What is an event?
What is an event handler ?
Which containers use a border Layout as their default layout?
What method is used to specify a container\'s layout?
What is the difference between invokeAndWait() and invokeLater()?
Why should any swing call back implementation execute quickly?
Which method is used by the applet to recognize the height and width?
What is source and listener ?
What is controls and what are different types of controls in AWT?
What is the difference between choice and list?
What is the difference between scrollbar and scrollpane?
What is a layout manager and what are different types of layout managers available?
What is the JavaScript?
How are the elements of different layouts organized?