Home » Web Tutorial » Table tutorial with XHTML part 2

Table tutorial with XHTML part 2

Wednesday, February 10th, 2010 | Web Tutorial, XHTML
321 views

This is the next part of previous tutorial about table Table tutorial with xhtml part 1

Now time to explain TD and TR Still remember with this table?

1A 2A 3A
1B 2B 3B
1C 2C 3C

Now I put number and letter combination at the table Cell. NUMBER is TD and LETTER is TR.

TR is horizontal part.

TD is vertical part

Remember, in table, we must TR at the first before we put TD.

Now, we want to make table like this


1A 2A 3A
1B 1C 2B 3B
2C 3C

How to  combine Coloumn name COLspan. And if you want to combine Row named ROWspan. Easy right?

Method :

Pick which colom that you want to combine. Pick the right and the upper side of the line. Put colrowspan code on the TD and remove another TD.

See this

<table width=”398″ height=”234″ border=”1″ align=”center” bordercolor=”#FF0000″ cellpadding=”2″ cellspacing=”3″>

<tr>

<td colspan=”3″ bgcolor=”#00FF00″> <!– Ini untuk menggabungkan 1A 2 A dan 3 A. Lihat kan kalau TD yg tadinya ada, jd lenyap dan ditaruh di antara TD dr kolom pertama–>

<font color=”#000000″ face=”Verdana” Size=”3″> 1 </font> <font color=”#FFFFFF” face=”Verdana” Size=”3″> 2 </font> <font color=”#FFFFFF” face=”Verdana” Size=”3″> 3 </font>

</td>

</tr> <tr>

<td width=”113″ rowspan=”2″> <!– Ini untuk menggabungkan 1B dan 1C. –>

<font color=”#FFFFFF” face=”Verdana” Size=”3″> 4 </font> <font color=”#FFFFFF” face=”Verdana” Size=”3″> 7 </font>

</td>

<td width=”153″> <font color=”#FFFFFF” face=”Verdana” Size=”3″> 5 </font> </td> <td width=”100″> <font color=”#FFFFFF” face=”Verdana” Size=”3″> 6 </font> </td> </tr> <tr> <td> <font color=”#FFFFFF” face=”Verdana” Size=”3″> 8 </font> </td> <td> <font color=”#FFFFFF” face=”Verdana” Size=”3″> 9 </font> </td> </tr>

</table>

If you still have question, pls feel free to ask

Related Posts Plugin for WordPress, Blogger...

Tags: , , , ,

Related Table tutorial with XHTML part 2

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Sell Link for Money Site

My second favorite think to earn money online with blog after Paid to

How to Follow Adbrite?

Its look like Adsense. You will need blogger or web to put the

Basic Tutorial for combin

I was teaching how to make this simple signature when I teaching Photoshop

Tutorial to Upload file t

Even though I already wrote tutorial the simplest way to upload web file