Web
Week 2- Html
Table, Image, Order List dan
UnOrder List
3
Objectives
Setelah menyelesaikan bab ini,
anda diharapkan dapat :
1. Mampu membuat table dalam html
2. Menampilkan Order list dan Un Order list
pada halaman web
3. Mampu menampilkan multimedia dan picture
dan video
Review
1. Jelaskan yang anda ketahui tentang :
a. Html
b. CSS
c. Javascript
2. Apa yang dimaksud dengan :
a. Tag
b. Attribut
c. Value
3. Tuliskan struktur html dalam bentuk diagram
5
Susunan HTML
<Head>
Kepala <Title>
Judul Homepage
<head> </Title>
</Head>
Homepage
<Body>
Tubuh Isi…Teks
Isi…Tabel.
<body> Isi…Audio, Video, dll.
</Body>
img : Display picture
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Video
Tag video memungkinkan menampilkan video
dalam halaman web
Attribut video adalah
• Width
• Height
• Source src=‘namavideo.mp4’ type=‘video/mp4’
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
9
Pembuatan Tabel
• Untuk membuat tabel : <tabble>
Cell-nya dengan tag <td>
<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>
10
Pemformatan Tabel
• Perataan tabel :
1. align (center, justify, left, right).
2. valign (baseline, top, middle, bottom)
• Lebar tabel : width=“25%”
• Warna cell : bgcolor=“red”
• Spasi tabel :
cellspacing untuk memberi spasi antar sel
cellpadding untuk spasi dari border ke text dalam cell
12