Home » Web Tutorial » Table tutorial with XHTML part 2

Table tutorial with XHTML part 2

Wednesday, February 10th, 2010 | Web Tutorial, XHTML
578 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...
Be Sociable, Share!

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.

How to Using Paypal for B

I got request from my Deviant Account. They asked me to create How

How to Motivating You to

So sorry not posting anything yesterday. I must fixing my another blog. It

What is EdgeRank Algorith

What is EdgeRank Algorithm on facebook Lately I confused why my facebook home

How to Solve Get Banned P

Yesterday, when one of my student ask how to create RSS, I ask