Pemrograman Web
03- HTML Lanjut
HTML Images
Menampilkan images pada halaman web
Attribute
src
Nilai Attribute
lokasi folder + nama file gambar + ekstensi file
width
px
height
px
alt
title
border
px
hspace
px
vspace
px
align
Hyperlink
Attribute
href
File HTML
URL
target
_blank
_top
_parent
_self
new
title
Nilai Attribute
Body
Image Map
How to create an image map, with clickable regions. Each of the regions is a
hyperlink
<map> </map>
Tag map mempunyai atribut name sebagai identitas yang akan dipakai oleh tag
<img> pada atribut usemap
<area>
Attribute
Nilai Attribute
shape
coords
koordinat
alt
text
href
Koordinat
Marquee
Membuat tampilan bergerak vertikal atau horizontal
Non-standard HTML element
Tidak disarankan untuk digunakan pada dokumen HTML
Attribute
Nilai Attribute
behavior
direction
width
px
height
px
scrollamount
scrolldelay
iFrame
Nilai Attribute
src
frameborder
1 atau 0
width
px atau persentase
height
px atau persentase
name
text
Contoh iFrame
<html>
<head> <title>Latihan iFrame</title></head>
<body>
<p>
<a href="http://w3schools.com" target="iframe_a">Go to W3schools</a> Lorem ipsum dolor
sit amet, consectetur adipiscing elit. Nunc sed lacus a odio iaculis egestas et
vestibulum nibh. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Vivamus cursus accumsan odio, eget vehicula purus laoreet pharetra. Nam
lacus erat, elementum at fringilla et, posuere sodales neque. Vivamus viverra placerat
sem in ultricies.
</p>
<iframe src="frame_a.html" frameborder="5" name ="iframe_a" width="70%"
height="40%"></iframe>
</body>
</html>
Contoh iFrame
Tampilan awal iframe
menampilkan frame_a.html
Latihan