Home > HTML > Membuat Tabel dan Seting Atribut

Membuat Tabel dan Seting Atribut

Tables

<table></table> membuat table

<tr></tr> set row pada tiap table

<td></td> set cell pada tiap row

<th></th> set table header

contoh:

<table width=”200″ border=”1″>

<tr>

<th>header</th>

</tr>

<tr>

<td>isi</td>

</tr>

</table>

akan menghasilkan:

header
isi

Table Attributes

<table border=”0″> set ukuran border

<table cellspacing=”1″> set ukuran spasi antar table cell

<table cellpadding=”1″> set spasi antara cell’s border dengan konten

<table width=”750″> set panjang table, (pixel / percentage)

<tr align=”left”> / <td align=”left”>  (left, center, or right)

<tr valign=”top”> / <td valign=”top”> (top, middle, or bottom)

<td colspan=”1″>  (default=1)

<td rowspan=”2″>  (default=1)

<td nowrap>

Advertisement
Categories: HTML Tags:
  1. atma165
    June 20, 2009 at 11:14 pm | #1

    mas.. makasih banyak niy atas ilmunya,,, saya udah nyoba.. ternyata gak neko2 niy… mantep..!!! kalau bisa kembangin sebanyak-banyak nya tentang HTML..
    makasih

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.