Frames © 2008 D. J. Foreman
Purposes View related pages together Navigation aid Consistency Note: frames are not in “strict” HTML
Frame Definition Page Defines the panel layout Defines the panel sizes Defines borders and sliders Title permitted NOT for text or other HTML elements!!!
Basic Syntax <title>……..</title> <frameset options> <frame src="file1.html"> <frame src="file2.html"> </frameset>
Frameset Attributes Specify layout within a frameset Cols="20%,40%,*" pixels or % Rows="*,80%,*" Border= size in pixels Frameborder='yes/no' Bordercolor=
Frame Attributes Bordercolor= Frameborder='yes/no' Marginheight=, marginwidth= Name= Noresize Scrolling='yes/no' Src=any URL
Nested definitions <html> <title>……..</title> <frameset rows="*,*,*"> <frame src="file1.html" name='r1'> <frameset cols="*,*"> <frame src="file-a.html" name='r2col1'> <frame src="file-b.html" name='r2col2'> </frameset> <frame src="file2.html" name='r3'> </html> Row 1 Row 2 Row 3
Result of previous page file1 file-a file-b file2