Cell spacing and cell padding, PHP Web Programming

Assignment Help:

Let us notice at a couple of attributes called CELLSPACING and CELLPADDING. Both are part of the <TABLE> tag. CELLPADDING is the amount of space among the border of the cell and the contents of the cell. The default value for this attribute is 1. It is so that any text in the cells does not show to be sticking to the border.  Though, you can indicate a value of 0 if you desire.

The CELLSPACING attribute contain a somewhat different meaning. It finds out the spacing among adjacent cells.  Its default value is two.  The following example illustrates these and some other significant attributes of the <TABLE> tag.

<HTML>

<HEAD>

<TITLE> ABC</TITLE>

</HEAD>

<BODY>

First: Table having cellspacing and cellpadding

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

<TR>

<TD>Ajay</TD>

<TD>Vijay</TD>

<TD>Rohan</TD>

</TR>

<TR>

<TD>Pankaj</TD>

<TD>Vikas</TD>

<TD>Sanjay</TD>

</TR>

</TABLE>

Second: Table having colspan

<TABLE BORDER=1>

<TR>

<TD COLSPAN=2>Ajay</TD>

<TD>Vijay</TD>

</TR>

<TR>

<TD>Vikas</TD>

<TD>Pankaj</TD>

<TD>Rohan</TD>

</TR>

</TABLE>

Third: Table having rowspan

<TABLE BORDER=1>

<TR>

<TD ROWSPAN=2>Ajay</TD>

<TD>Vijay</TD>

<TD>Rohan</TD>

</TR>

<TR>

<TD>Pankaj</TD>

<TD>Deepak</TD>

</TR>

</TABLE>

Fourth :Table having rowspan & colspan

<TABLE BORDER=1>

<TR>

<TD ROWSPAN=2>Ajay</TD>

<TD COLSPAN=2>Vijay</TD>

 </TR>

<TR>

<TD>Pankaj</TD>

<TD>Rohan</TD>

</TR>

</TABLE>

Fifth: Table having strong tag & a link in cell's data

<TABLE BORDER=1>

<TR>

<TD COLSPAN=3

ALIGN=CENTER><STRONG><AHREF="https://IGNOU.org/">Ajay</STRO

NG>

</TD>

</TR>

<TR>

<TD>Vijay</TD>

<TD>Vikas</TD>

<TD>Pankaj</TD>

</TR>

</TABLE>

</BODY>

</HTML>

426_Cell Spacing and Cell Paddin.png

             Figure: Some Important Attributes of the Table Tag Family

The first table in Figure illustrates cellspacing and cellpadding.


Related Discussions:- Cell spacing and cell padding

Need help in magento site optimization, Need help in Magento Site Optimizat...

Need help in Magento Site Optimization and Cross Browser Compatibility Looking for Magento expert for optimization of development site due to be launched soon. Tasks would compr

Vbscript basics, It is a powerful & easy to learn tool which can be used to...

It is a powerful & easy to learn tool which can be used to insert interaction to your Web pages. The Web browser attains scripts along the rest of the Web document. The browser

Want help in website creation, Website creation I would like to get an c...

Website creation I would like to get an concept of price if I ask you to create a simple website with wordpress, Job description- WORDPRESS Web development project type- New

What are the differences between http and https, Question 1: Describe i...

Question 1: Describe in detail how public key and private key cryptography are used to provide secure access from a browser to a Web server over the Internet so that a commerc

Project, sample proposal background for a turn it in system

sample proposal background for a turn it in system

Layout view, a. Layout View - you can build page layout, insert graphics, &...

a. Layout View - you can build page layout, insert graphics, & other media. b. Standard View - as well to insert graphics text & media, you can also add layers, create frame doc

Develop a gwt application, Develop a GWT application (based on the Sampl...

Develop a GWT application (based on the Sample05_Objects example) which helps students select the courses in which they want to enroll. The domain model should have Department

Web site on cake php to be redesigned, Web Site on Cake PHP to be redesigne...

Web Site on Cake PHP to be redesigned and Things to be added Project Description: We have a web site that has some finishing off and also fixing some bugs. We will consider I

I need a three page website, I need a three page website I have a homepa...

I need a three page website I have a homepage as well as two internal page designs ready in fireworks. I want these three pages online by the weekend. More work if we discover a

Develop a new magento site, As we are establishing a new Magento site with ...

As we are establishing a new Magento site with several large extensions involved, this job is to resolve the various unexpected issues that can occur during set up and testing. As

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd