Download
    Interview Question     &Answer
Main Menu
HTML Table@ Shwetank education.com
Definition-  Html table are to be used display the data sequance or well format
Tables are defined with the <table> tag.

1-A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag).
2-The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.
Example
<table border="1">
<tr>
<td>row 1, cell 1
</td>
<td>row 1, cell 2
</td>
</tr>
<tr>
<td>row 2, cell 1
</td>
<td>row 2, cell 2
</td>
</tr>
</table>
Output
row 1, cell 1row 1, cell 2
row 2, cell 1row 2, cell 2

Headings in a Table
<table border="1">
<tr>
<th>Roll No.</th>
<th>Class</th>
</tr>
<tr>
<td>10,
</td>
<td> 9th </tr>
</table>
Output
Roll NoClass
10 9th

HTML Cell padding
Cell Padding puts some space between the border of the cell and the text.
<table border="1" cellpadding="10">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
Output

With cellpadding:

First Row
Second Row
Cell Spacing
Cell spacing puts some space between the cell themselves in the table
<table border="1" cellspacing="10">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
Output
With cellspacing
First Row
Second Row
All Attribute in a Table
bgcolor -  background-  border  
bordercolor-  height-  Width
Cellpadding-  Cellspacing


IT  Projects Links
M-Tech Thesis
Php Project
Java Project
Asp.Net Project
Android Project
Vb .Net Project
Html Project

------------------------------- Electronics  Project
Networking
Embedded system
Telecom
Robotics
CCNA
------------------------------- Latest IT  News


Copyright 2010-2015    shwetankeducation.com
Privacy & Terms