Top Banner
HTML Frames 1) Introduction to Frames 2) Simple Frame Example 3) Frame Layout 4) Excercise
20

HTML Frames

Mar 19, 2016

Download

Documents

Nonnie

HTML Frames. Introduction to Frames Simple Frame Example Frame Layout Excercise. Why Frames?. Able to present documents in multiple views Views can be in independent windows/subwindows Information can be varied in different windows while navigation is controlled in one window. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: HTML Frames

HTML Frames

1) Introduction to Frames2) Simple Frame Example3) Frame Layout4) Excercise

Page 2: HTML Frames

Why Frames?

Able to present documents in multiple views

Views can be in independent windows/subwindows

Information can be varied in different windows while navigation is controlled in one window

Page 3: HTML Frames

Frame Layout<FRAMESET rows/cols=“x(%),y(%)| pix x, pix y” frameborder=[yes,no] >

<FRAME src=“html file” name=“string” scrolling=“yes/no/auto” noresize >

<NOFRAMES><P>If you have a non-frame compatible browser, this message will show upinstead of the frames. Usually you use it to tell users to go get a frame-compatible browser and come back.</P></NOFRAMES>

</FRAMESET>

Page 4: HTML Frames

This is an example of a simple frame document :

<HTML><TITLE> Simple Frameset document </TITLE><!-- Column --><FRAMESET cols=“20%, 80%” frameborder=“no”><!-- Contents of 1st column is 2 Rows --> <FRAMESET rows=“100, 200”> <!-- Row --> <FRAME src=“row1.html” name=“ rcoltrow”> <FRAME src=“row2.html” name=“rcolbrow” scrolling=“auto”> </FRAMESET><!-- End of 2 Rows --><!-- Contents of 2nd column --> <FRAME src=“col2.html” name=“lcol”></FRAMESET></HTML>

Simple Frame Example

Page 5: HTML Frames
Page 6: HTML Frames

Create 7 FILE as follows..!Index.html

Page 7: HTML Frames

Output from index.html

Page 8: HTML Frames

atas.html

Note : File headersmaga2.jpg harus berada 1 lokasi dengan file htmlnya

Page 9: HTML Frames

Output from index.html after we make atas.html

Page 10: HTML Frames

bawah.html

• Name=“isinya” adalah untuk mendefinisikan nama frame• Untuk memanggil frame tersebut nantinya cukup dengan memanggil nama framesnya saja yaitu “isinya”

Page 11: HTML Frames

Output from index.html after we make bawah.html

Page 12: HTML Frames

kiri.html

Page 13: HTML Frames

Output from index.html after we make kiri.html

Page 14: HTML Frames

menu.html

Target=“isinya” adalah frame tujuan dimana file isi.html harus diletakan, tetapi terlebih dahulu framenya harus diberi nama seperti pada slide sebelumnya

Page 15: HTML Frames

• Tag <A HREF>…..</A> is used to link the document or URL Example :

Script above used to link text Home to isi.html document

If we’ll link image, use script like this :

< A HREF=“isi.html” target=“isinya”><img src=“gambar.jpg”></A>

Page 16: HTML Frames

Output from index.html after we make menu.html

Page 17: HTML Frames

isi.html

File di atas adalah file yang dibuat pada pertemuan I

Page 18: HTML Frames

Output from index.html after we make isi.html

Page 19: HTML Frames

kanan.html

Page 20: HTML Frames

Output from index.html after we make isi.html