TV ONLINE

Jumat, 22 April 2011

CSS code: My Web

Pertama-tama, buat kode berikut pada notepad, dan simpan dengan nama "mystyle.css"



/* body*/
body {
background: #d4d0c8;
margin:0px;
}


/*heading*/
h4.as_external {
color:#00ff00;
font-family:tahoma,firewalk36,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;
font-size: 14px;font-weight:bold;
}

Kamis, 21 April 2011

CSS internal code: background image

ini adalah contoh kode CSS membuat background image


<head>
<style type="text/css">
hr {color:sienna}
p{margin-left:20px}
body{background-image:url("images/2.jpg")}
</style>
</head>
<body>
<p>ini adalah percobaan penggunaan Css internal</p>
<hr>
</body>
</html>


berikut tampilannya:


CSS code: Teks

Ini adalah kode CSS sederhana untuk ukuran teks, warna, dan tata letaknya.


<html>
<head>
<link rel="stylesheet" type="text/css" href="eksternal.css">
</head>
<body>
<h1>header ini ukurannya 36pt</h1>
<H2>header ini warnanya biru</h2>
<p>paragraf ini letaknya sebelah kiri dengan jarak 50px</p>
</body>
</html>

Berikut tampilannya

HTML code: TABEL part II

Ketika mandapat materi tentang pembuatan tabel, kami mendapat quis tentang materi ini, berikut soal dan jawaban yang saya berikan.

1.

HTML code: My Biodata

Berikut kode HTML untuk membuat Biodata. Coding ini saya buat ketika mendapat tugas membuat biodata diri dengan kode HTML di matakuliah Pemrograman web.

<html>
<head>
<title>My Biodata</title>
</head>

<body bgcolor="black">
<table align="center" width="80%" background="123456.jpg"  width="800%" height="100%">

<tr>
<td  align="center" colspan="6" ><img src="1234.jpg" width="100%" ></td>
</tr>

<tr>
<td height="50">&nbsp;</td>
</tr>