TIME NOW
World current time now,
CALENDAR
Calendar monthly, yearly
login GOLD PRICE, RATE
login HOROSCOPE
login DICTIONARIES, LISTS
login SCIENCE EDUCATION RELIGION
login FINANCE, BUSINESS
login WORLD COUNTRIES, WIKI

HTML code examples, samples, tutorial

Previous articlePage bottomNext article  ALL TOPICS

Html code example. TABLE TD tag colspan rowspan

 
<td></td> tag: Colspan, rowspan merge cells
<table border="1">
<tr>
<td rowspan = "2" >January</td>
<td>$100</td>
</tr>
<tr>
<td>$100</td>
</tr>
</table>
 
<table border="1">
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$100</td>
</tr>
<tr>
<td colspan="2" >Sum: $180</td>
</tr>
</table>
 
<table border="1">
<tr>
<td>January</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td colspan="3" >Sum: $180</td>
</tr>
</table>
 

<table border="1">
<tr>
<td>January</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td colspan="2" >Sum: $180</td>
<td>Additional</td>
</tr>
</table>
 
<table border="1">
<tr>
<td>January</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td colspan="2" >Sum: $180</td>
</tr>
</table>
 
<table border="1">
<tr>
<td rowspan = "3" >January</td>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td>$100</td>
<td>$100</td>
</tr>
<tr>
<td>$100</td>
<td>$100</td>
</tr>
</table>

Running text in tables. One table- 3 cells. Second table- 2 cells.
<table border = "0" width = "200" cellpadding = 0 cellspacing = 0 align = center >

    <tr align = "center" >
    <td bgcolor = "red" >
    <marquee direction = "up" height = "50" > Some sliding text </marquee>
    </td>

    <td bgcolor = "green" >
    <marquee direction = "down" height = "50" > Some sliding text </marquee>
    </td>

    <td  bgcolor = "red" >
    <marquee direction = "up" height = "50" > Some sliding text </marquee>
    </td>
    </tr>

</table>


<table border = "0" width = "200" cellpadding = 0 cellspacing = 0 align = center >

    <tr align = "center" >
    <td bgcolor = "red" >
    <marquee direction = "left" height = "50" > Some sliding text </marquee>
    </td>

    <td bgcolor = "green" >
    <marquee direction = "right" height = "50" > Some sliding text </marquee>
    </td>

</table>
 
Previous articlePage topNext article  ALL TOPICS



 Use username: Guest, Anonymous, Programmer






QUOTES:
Happy the society whose deepest divisions are ones of style.
Peter Mckay
Towns oftener swamp one than carry one out onto the big ocean of life.
D. H. Lawrence
There's a lot to be said for self-delusionment when it comes to matters of the heart.
Andrew Schneider