Objectives
Setelah menyelesaikan bab ini,
anda diharapkan dapat:
WWW - continued
http://www.detik.com/index.html
Tag-tag HTML
Dimana:
Element - nama tag
Attribute - atribut dari tag
Value - nilai dari atribut.
Contoh:
<BODY BGCOLOR=lavender>
8
<html>
<head>
</head>
<body>
</body>
</html>
9
Susunan HTML
<Head>
<Title>
Kepala
<head>
Judul Homepage
</Title>
</Head>
Homepage
<Body>
IsiTeks
IsiTabel.
IsiAudio, Video, dll.
Tubuh
<body>
</Body>
10
<html>
11
<head>
<head>
<title>Welcome to eepis-its</title>
</head>
12
<body>
<html>
<head>
<title>Welcome to eepis-its</title>
</head>
<body bgcolor="lavender">
<p>Document HTML yang Pertama</p>
</body>
</html>
13
<body>
<h1>Heading
<h2>Heading
<h3>Heading
<h4>Heading
<h5>Heading
<h6>Heading
</body>
one</h1>
two</h2>
three</h3>
four</h4>
five</h5>
six</h6>
14
<body>
<h3>Salam Kenal</h3>
<p>
Saya dari jurusan telekom PENS ITS.
Siapa ya yang mo kenalan dengan saya.
</p>
<body>
15
<body>
<P>Nama-nama buah</P>
<ul>
<li>Mangga</li>
<li>Duren</li>
<li>Sirsak</li>
</ul>
</body>
16
<body>
<P>Daftar Jurusan PENS ITS</P>
<ol start="1" type=1">
<li>Telkom</li>
<li>IT</li>
<li>Elka</li>
<li>Elektro Industri</li>
</ol>
<body>
17
A : A, B, C,
a : a, b, c,
I : I, II, III,
i : i, ii, iii,
1 : 1, 2, 3,
18
Contoh:
<hr position=center width=90% size=3
noshad>
19
Pemformatan Page
20
21
22
23
Pembuatan Tabel
<html>
<head>
<title>Using Table</title>
</head>
<body>
<table border="1">
<td>cell 1</td>
<td>cell 2</td>
<td>cell 3</td>
<td>cell 4</td>
</table>
</body>
</html>
24
Pemformatan Tabel
Perataan tabel :
1. align (center, justify, left, right).
2. valign (baseline, top, middle, bottom)
26
Contoh :
<body>
<table border=1 cellspacing=5
cellpading=10>
<tr align="left" valign="top">
<td width="25%"
bgcolor=red>cell 1a</td>
<td width="25%"
bgcolor=yellow>cell 1b</td>
</tr>
<tr align="center"
valign="baseline">
<td>cell 2a</td>
<td>cell 2b</td>
</tr>
</table>
</body>
27