Home » Web Tutorial » Table tutorial with XHTML part 1

Table tutorial with XHTML part 1

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

After write about Banner Exchange with XHTML Tutorial , now it is the time to write about   table in XHTML. Hope you able to understand


Basically, table is divide into 3 part : <table> <tr> and <td>

Now I will explain each component in table

<table width=”398″ height=”234″ border=”1″ align=”center” background=”http://www.imagedum.com/images/344_Dreams_by_Double_G.jpg” bordercolor=”#FF0000″ cellpadding=”2″ cellspacing=”3″>

<tr>
<td bgcolor=”#00FF00″>
<font color=”#000000″ face=”Verdana” Size=”3″> 1 </font>
</td>
<td>
<font color=”#FFFFFF” face=”Verdana” Size=”3″> 2 </font>
</td>
<td>

<font color=”#FFFFFF” face=”Verdana” Size=”3″>
3 </font>
</td>
</tr>
<tr>

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

<font color=”#FFFFFF” face=”Verdana” Size=”3″>
6 </font>
</td>

</tr>
<tr>

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

<font color=”#FFFFFF” face=”Verdana” Size=”3″>
9 </font>
</td>

</tr>

</table>

THE RESULT


1 2 3
4 5 6
7 8 9

Confusing? Hope not.

You can see the number 1-9 is appear in every cell in
table. That means the CELL CONTENT is available in TD tag. If you confused,
first step is write all number between TD tag, It will help you a lor.

This is explanation about table attribute :

width = table width
height = table height

border = Border thickness

bordercolor
= For change Border color
align
= Position table in center/left/right
background= BG image
cellpadding = Distance between border to cell

cellspacing
= Distance between cell

These property also available for TD tag. So you can use it
at TD too.

If you still confuse, feel free to ask. ^^

Related Posts Plugin for WordPress, Blogger...

Tags: , ,

Related Table tutorial with XHTML part 1

RSS feed | Trackback URI

1 Comment »

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.

Best Free Translation Too

Few days ago, I found my new Japanese Idol web blog. His name

Tips to Write Great Artic

After Tips how to write blog daily, now its the time to write

How to Using Paypal for B

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

High Paying Keyword Googl

Its been a while I’m not posting anything at this blog. And since