Penggunaan tag dengan colspan dan rowspan

Hei sobat sobat…. ane mau share sisi lain dari penggunaan table nih, kali aja kalian udh bosen ngegunain tag table di html cuma buat itu-itu aja. Mungkin sedikit ga berguna, tp kita coba berfikir extraordinary kalo table itu ga berarti cuma table tapi bisa jadi sesuatu yang lain… Coba deh sintak berikut:

<table border=1 width=300 height=125>
	<tr>
		<td rowspan=5 bgcolor=yellow></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td rowspan=5 bgcolor=yellow></td>
		<td bgcolor=black></td>
		<td rowspan=5 bgcolor=yellow></td>
		<td colspan=2 bgcolor=yellow></td>
		<td bgcolor=black></td>
		<td rowspan=5 bgcolor=yellow></td>
		<td colspan=2 bgcolor=yellow></td>
	</tr>
	<tr>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=yellow></td>
	</tr>
	<tr>
		<td bgcolor=black></td>
		<td bgcolor=yellow></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td colspan=2 bgcolor=yellow></td>
		<td bgcolor=black></td>
		<td bgcolor=yellow></td>
		<td bgcolor=black></td>
	</tr>
		<tr>
		<td bgcolor=yellow></td>
		<td bgcolor=black></td>
		<td bgcolor=yellow></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=yellow></td>
	</tr>
		<tr>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td bgcolor=black></td>
		<td colspan=2 bgcolor=yellow></td>
		<td bgcolor=black></td>
		<td colspan=2 bgcolor=yellow></td>
	</tr>
</table>
hasilnya kaya gini sob:

hehehe…. simple-simple aja kan…

2 thoughts on “Penggunaan tag dengan colspan dan rowspan

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 )

Google+ photo

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

Connecting to %s