Minggu, 28 November 2010

Rowspan pada tabel

Kode Program

?html>
?head>
?title>Table Rowspan?/title>
?/head>
?table border = 1 bgcolor = grey text align = center>
?tr>?td Rowspan = 2>Nama?/td>?td colspan = 2> Nilai?/td>?/tr>
?tr>?td>UTS?/td>?td>UAS?/td>?/tr>
?tr>?td>Eko P?/td>?td>80,05?/td>?td>87,00?/td>?/tr>
?tr>?td>Danang?/td>?td>83,40?/td>?td>84,50?/td>?/tr>
?/table>
?/html>

Colspan pada tabel

Kode Program

?html>
?head>
?title>Table Colspan?/title>
?/head>
?table border = 1 bgcolor = grey text align = center>
?tr>?td>Nama?/td>?td colspan = 2> Nomor Telp.?/td>?/tr>
?tr>?td>Eko P?/td>?td>08129999?/td>?td>08128888?/td>?/tr>
?tr>?td>Danang?/td>?td>08127777?/td>?td>08126666?/td>?/tr>
?/table>
?/html>

Cara Membuat Form pada halaman web

kode program

?html>
?head>
?title>Mahasiswa?/title>
?/head>
?table border = 0 text align = center>
?tr>?td colspan = 3>Entri Data Mahasiswa?/td>?/tr>
?tr>?td>Npm?/td>?td>:?/td>?td>?input type = text name = textnpm value = ''>?/td>?/tr>
?tr>?td>Nama?/td>?td>:?/td>?td>?input type = text name = textnpm value = ''>?/td>?/tr>
?tr>?td colspan = 3>?input type = button value = Simpan>?/td>?/tr>
?tr>?td colspan = 3>?input type = checkbox value = Laki-laki>Laki-LAki?/td>?/tr>
?tr>?td colspan = 3>?input type = radio name=sex value = Laki-LAki>Laki-LAki?/td>?/tr>
?tr>?td colspan = 3>?input type = radio name=sex value = Perempuan>Perempuan?/td>?/tr>
?/table>
?/html>

Cara Membuat Link pada Halaman web

Kode program

?html>
?title> Daftar Link ?/title>
?h4 text align = center> Daftar Link Terpopuler ?/center>
?br>?br>
?head>
?A HREF= "http://google.co.id">Google?/A>?br>
?A HREF= "http://Yahoo.co.id">Yahoo?/A>
?/head>
?/html>

Membuat Menu Pada Halaman Web

Berikut kode program cara membuat menu

?html>
?head>
?title>MENU?/title>
?style type = text/css>
td { background : url(gambar/kotakeko.png);
font-size:15px;
text-align : center;
}
td:hover {
background : url(gambar/kotakeko2.png);
font-size:20px;
}
?/style>?/head>
?body bgcolor=grey>
?u>?h3>MENU?/h3>?/u>?br>
?table border = 0 width = 200 >
?tr>?td>?a href = latihan1.php target = fc>Pilihan 1?/a>?/td>?/tr>?br>
?tr>?td>?a href = latihan3.php target = fc>Bebas?/a>?/td>?/tr>?br>
?tr>?td>?a href = tabel1.php target = fc>Tabel?/a>?/td>?/tr>?br>
?tr>?td>?a href = tabelcolspan.php target = fc>Tabel 2 (Colspan)?/a>?/td>?/tr>?br>
?tr>?td>?a href = tabelrowspan.php target = fc>Tabel 3 (Rowspan)?/a>?/td>?/tr>?br>
?tr>?td>?a href = mahasiswa.php target = fc>Form Mahasiswa?/a>?/td>?/tr>?br>
?/table>
?/body>
?/html>

Banner Pada Halaman Web

Berikut ini kode program untuk menampilkan banner pada suatu halaman web.
tambahkan folder gambar, selanjutnya masukkan banner pada folder tersebut

?/html>
?head>
?title>Atas?/title>
?/head>
?body>
?center>
?img src= gambar/gbatas.jpg width=100% height=100%>
?/center>
?/body>
?/html>

index untuk folder


Kode program ini digunakan untuk membuat frame seperti


?html>
?head>
?frameset rows = "20%, 80%">
?frame src = judul.php name=fa>
?frameset cols = "30%, 50%, 20%">
?frame src = menu.php name=fb>
?frameset rows = "80%, 20%">
?frame src = latihan3.php name=fc>
?frame src = footer.php name=fe>
?/frameset>
?frame src = link.php name=fd>
?/frameset>
?/head>
?body>
?/body>
?/html>
ekoprihastopo © 2008 Template by:
SkinCorner