FRAME
Berfungsi untuk membagi layar monitor menjadi bagian-bagian kecil dalam bentuk frame,
sehingga memberikan fasilitas kemudahan dalam mencari informasi.
Contoh 1 :
<frameset rows="*,*">
<frame name="frame1" src="creator.html">
<frame name="frame2" src="tpl.html">
</frameset>
Catatan :
- Rows = membagi layar dalam bentuk bertumpukan
- Cols = membagi layar dalam bentuk kolom-kolom (bersebelahan)
- Dalam frame tag <BODY> diganti dengan <FRAMESET>
- Scrolling = layar tidak bisa digulung keatas atau kebawah
- Noresize = lebar layar tidak dapat diubah-ubah
- Marginheight = mengatur margin top layar
- Marginwidth = mengatur margin kiri layar
Contoh 2 :
<frameset cols="*,*">
<frame name="frame1" src="creator.html" scrolling="no" noresize>
<frame name="frame2" src="tpl.html" marginheight=50 marginwidth=65>
</frameset>
Contoh 3 :
<frameset rows="30%,60%,30%">
<frame name="frame1" src="creator.html">
<frame name="frame2" src="tpl.html">
<frame name="frame3" src="tplfram.html">
</frameset>
Contoh 4 :
<frameset rows="*,*">
<frame src="creator.html" name=frame1>
<frameset cols="*,*">
<frame src="tpl.html" name=frame2>
<frame src="tplfram.html" name=frame3>
</frameset>
</frameset>
Contoh 5 :
<body>
<a href="creator.html" target="frame1">creator</a>
<a href="tpl.html" target="frame2">tpl</a>
<a href="tplfram.html" target="frame3">frame</a>
</body>
Ke Menu