SlideShare a Scribd company logo
2
Most read
6
Most read
9
Most read
HTML Frames
Mr. Madar Bandu
Introduction
• Frames divide a browser window into several
divisions, each division containing a separate
HTML document.
• You can then load and reload single division
without having to reload the entire contents
of the browser window.
• A collection of frames in the browser window
is known as a frameset.
Introduction
• The window is divided up into frames in a
similar pattern to the way tables are
organized: into rows and columns.
• The simplest of framesets might just divide
the screen into two rows, while a complex
frameset could use several rows and columns.
Frame Drawbacks
• Some browsers do not print well from framesets.
• Some smaller devices cannot cope with frames,
often because their screen is not big enough to
be divided up.
• Some time your page will be displayed differently
on different computers due to different screen
resolution.
• The browser's back button might not work as the
user hopes.
• There are still few browsers who do not support
frame technology.
Creating Frames - <frameset>
Element
• The <frameset> tag replaces the <body> element in
frameset documents.
• The <frameset> tag defines how to divide the window
into frames.
• Each frameset defines a set of rows or columns. If you
define frames by using rows then horizontal frames are
created. If you define frames by using columns then
vertical frames are created.
• The values of the rows/columns indicate the amount of
screen area each row/column will occupy.
• Each frame is indicated by <frame> tag and it defines
what HTML document to put into the frame.
Example
<html>
<head>
<title>Frames example</title>
</head>
<frameset rows="10%,80%,10%“>
<frame src="/html/top_frame.htm" />
<frame src="/html/main_frame.htm" />
<frame src="/html/bottom_frame.htm" />
<noframes>
<body> Your browser does not support
frames. </body> </noframes>
</frameset> www.eshikshak.co.in
The <frameset> Element Attributes
• cols: specifies how many columns are contained in the frameset
and the size of each column. You can specify the width of each
column in one of four ways:
– Absolute values in pixels. For example to create three vertical frames,
use cols="100, 500,100".
– A percentage of the browser window. For example to create three
vertical frames, use cols="10%, 80%,10%".
– Using a wildcard symbol. For example to create three vertical frames,
use cols="10%, *,10%". In this case wildcard takes remainder of the
window.
– As relative widths of the browser window. For example to create
three vertical frames, use cols="3*,2*,1*". This is an alternative to
perce
The <frameset> Element Attributes
• rows: attribute works just like the cols attribute and can take the
same values, but it is used to specify the rows in the frameset. For
example to create two horizontal frames, use rows="10%, 90%".
You can specify the height of each row in the same way as
explained above for columns.
• border: attribute specifies the width of the border of each frame in
pixels. For example border="5". A value of zero specifies that no
border should be there.
• frameborder: specifies whether a three-dimensional border should
be displayed between frames. This attrubute takes value either 1
(yes) or 0 (no). For example frameborder="0" specifies no border.
Loading Content - <frame> Element
• The <frame> element indicates what
goes in each frame of the frameset.
• The <frame> element is always
an empty element,and therefore
should not have any
should always
carry one
content, although each <frame>
element
attribute, src, to
indicate the page that should
represent that frame.
Loading Content - <frame> Element
<frame src="/html/top_frame.htm" />
<frame src="/html/main_frame.htm" />
<frame src="/html/bottom_frame.htm" />
The <frame> Element Attributes
• src: indicates the file that should be used in the frame. Its value can be
any URL. For example, src="/html/top_frame.htm" will load an HTML file
avaible in html directory.
• name: attribute allows you to give a name to a frame. It is used to indicate
which frame a document should be loaded into. This is especially
important when you want to create links in one frame that load pages into
a second frame, in which case the second frame needs a name to identify
itself as the target of the link.
• frameborder: attribute specifies whether or not the borders of that frame
are shown; it overrides the value given in the frameborder attribute on
the <frameset> element if one is given, and the possible values are the
same. This can take values either 1 (yes) or 0 (no).
The <frame> Element Attributes
• noresize: By default you can resize any frame by clicking and
dragging on the borders of a frame. The noresize attribute prevents
a user from being able to resize the frame. For example noresize="
noresize".
• scrolling: controls the appearance of the scrollbars that appear on
the frame. This takes values either "yes", "no" or "auto". For
example scrolling="no" means it should not have scroll bars.
Browser Support - <noframes> Element
• If a user is using any old browser or any browser which
does not support frames then <noframes> element
should be displayed to the user.
• In XHTML you must place a <body> element inside the
<noframes> element because the <frameset> element
is supposed to replace the <body> element, but if a
browser does not understand the <frameset> element
it should understand what is inside the <body>
element contained in the <noframes> element.
• You can put some nice message for your user having
old browsers. For example Sorry!! your browser does
not support frames.
Thank you

More Related Content

Similar to HTML FRAMES properties and list of frames in detail (20)

PPTX
Frames and its components
Deepam Aggarwal
 
PPTX
Html Frames
Xainab Ishfaq
 
PPTX
Html frames
nobel mujuji
 
PPTX
Final_Frames.pptx
SajalZawar
 
PDF
2b. Web Technology HTML Basics-2
Jyoti Yadav
 
PPT
POLITEKNIK MALAYSIA
Aiman Hud
 
DOC
Handout6 html frames
Nadine Guevarra
 
PDF
Ls-No-1 Web Publishing Notes.pdf 12th information technology chapter 1
AAFREEN SHAIKH
 
PPTX
Frames.pptx Frames (using the <frame> tag) are used to divide a web browser w...
mads9566966
 
PPT
Frames.ppt
anshchaudhary9988
 
PPSX
computer language - Html frames
Dr. I. Uma Maheswari Maheswari
 
PPT
Frames.ppt
Dr.R.SUGANYA RENGARAJ
 
DOC
Html basics 8 frame
H K
 
PPT
htmlframes-201129101735 (1)htmlframe.ppt
Shwetamaurya36
 
PDF
5. Frames & Forms.pdf
qwertyuiop154709
 
PPTX
DEFINE FRAME AND FRAME SET WITH A EXAMPLE
Vaibhav Sinha
 
PPT
Ashish
ashish8030
 
PPT
frames
ashish8030
 
PPTX
DEFINE FRAME AND FRAME SET WITH EXAMPLE
patelpriyank01
 
PPTX
Html frames
ManishaSheelam
 
Frames and its components
Deepam Aggarwal
 
Html Frames
Xainab Ishfaq
 
Html frames
nobel mujuji
 
Final_Frames.pptx
SajalZawar
 
2b. Web Technology HTML Basics-2
Jyoti Yadav
 
POLITEKNIK MALAYSIA
Aiman Hud
 
Handout6 html frames
Nadine Guevarra
 
Ls-No-1 Web Publishing Notes.pdf 12th information technology chapter 1
AAFREEN SHAIKH
 
Frames.pptx Frames (using the <frame> tag) are used to divide a web browser w...
mads9566966
 
Frames.ppt
anshchaudhary9988
 
computer language - Html frames
Dr. I. Uma Maheswari Maheswari
 
Html basics 8 frame
H K
 
htmlframes-201129101735 (1)htmlframe.ppt
Shwetamaurya36
 
5. Frames & Forms.pdf
qwertyuiop154709
 
DEFINE FRAME AND FRAME SET WITH A EXAMPLE
Vaibhav Sinha
 
Ashish
ashish8030
 
frames
ashish8030
 
DEFINE FRAME AND FRAME SET WITH EXAMPLE
patelpriyank01
 
Html frames
ManishaSheelam
 

More from 22eg105n11 (15)

PPTX
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
PPT
unit3kiran.pptunit-3-Interactions&Usecases.pptx
22eg105n11
 
PPTX
UNIT-2 OOM.pptxUNIT-2 OOM.pptxUNIT-2 OOM.pptx
22eg105n11
 
PPTX
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
PPTX
MachineLearning_Unit-II.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile M...
22eg105n11
 
PPTX
MachineLearning_Unit-I.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Mo...
22eg105n11
 
PPTX
Scrum.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
PPTX
Presentation (3).pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
PPTX
Agile Model.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
PPTX
Scrum.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
PPTX
Scrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
PPTX
Agile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
PPTX
FAI UNIT 6FAI UNIT 7 all important questions to be noted max pass
22eg105n11
 
PPTX
unit-1 &2 important questions to be noted
22eg105n11
 
PPTX
unit1-oom.pptxunit-1 &2 important questions to be noted
22eg105n11
 
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
unit3kiran.pptunit-3-Interactions&Usecases.pptx
22eg105n11
 
UNIT-2 OOM.pptxUNIT-2 OOM.pptxUNIT-2 OOM.pptx
22eg105n11
 
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
MachineLearning_Unit-II.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile M...
22eg105n11
 
MachineLearning_Unit-I.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Mo...
22eg105n11
 
Scrum.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
Presentation (3).pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
Agile Model.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
Scrum.pptxScrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
Scrum.pptxAgile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
Agile Model.pptxAgile Model.pptxAgile Model.pptx
22eg105n11
 
FAI UNIT 6FAI UNIT 7 all important questions to be noted max pass
22eg105n11
 
unit-1 &2 important questions to be noted
22eg105n11
 
unit1-oom.pptxunit-1 &2 important questions to be noted
22eg105n11
 
Ad

Recently uploaded (20)

PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PDF
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
Adobe Premiere Pro Crack / Full Version / Free Download
hashhshs786
 
PPTX
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PDF
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
Adobe Premiere Pro Crack / Full Version / Free Download
hashhshs786
 
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Ad

HTML FRAMES properties and list of frames in detail

  • 2. Introduction • Frames divide a browser window into several divisions, each division containing a separate HTML document. • You can then load and reload single division without having to reload the entire contents of the browser window. • A collection of frames in the browser window is known as a frameset.
  • 3. Introduction • The window is divided up into frames in a similar pattern to the way tables are organized: into rows and columns. • The simplest of framesets might just divide the screen into two rows, while a complex frameset could use several rows and columns.
  • 4. Frame Drawbacks • Some browsers do not print well from framesets. • Some smaller devices cannot cope with frames, often because their screen is not big enough to be divided up. • Some time your page will be displayed differently on different computers due to different screen resolution. • The browser's back button might not work as the user hopes. • There are still few browsers who do not support frame technology.
  • 5. Creating Frames - <frameset> Element • The <frameset> tag replaces the <body> element in frameset documents. • The <frameset> tag defines how to divide the window into frames. • Each frameset defines a set of rows or columns. If you define frames by using rows then horizontal frames are created. If you define frames by using columns then vertical frames are created. • The values of the rows/columns indicate the amount of screen area each row/column will occupy. • Each frame is indicated by <frame> tag and it defines what HTML document to put into the frame.
  • 6. Example <html> <head> <title>Frames example</title> </head> <frameset rows="10%,80%,10%“> <frame src="/html/top_frame.htm" /> <frame src="/html/main_frame.htm" /> <frame src="/html/bottom_frame.htm" /> <noframes> <body> Your browser does not support frames. </body> </noframes> </frameset> www.eshikshak.co.in
  • 7. The <frameset> Element Attributes • cols: specifies how many columns are contained in the frameset and the size of each column. You can specify the width of each column in one of four ways: – Absolute values in pixels. For example to create three vertical frames, use cols="100, 500,100". – A percentage of the browser window. For example to create three vertical frames, use cols="10%, 80%,10%". – Using a wildcard symbol. For example to create three vertical frames, use cols="10%, *,10%". In this case wildcard takes remainder of the window. – As relative widths of the browser window. For example to create three vertical frames, use cols="3*,2*,1*". This is an alternative to perce
  • 8. The <frameset> Element Attributes • rows: attribute works just like the cols attribute and can take the same values, but it is used to specify the rows in the frameset. For example to create two horizontal frames, use rows="10%, 90%". You can specify the height of each row in the same way as explained above for columns. • border: attribute specifies the width of the border of each frame in pixels. For example border="5". A value of zero specifies that no border should be there. • frameborder: specifies whether a three-dimensional border should be displayed between frames. This attrubute takes value either 1 (yes) or 0 (no). For example frameborder="0" specifies no border.
  • 9. Loading Content - <frame> Element • The <frame> element indicates what goes in each frame of the frameset. • The <frame> element is always an empty element,and therefore should not have any should always carry one content, although each <frame> element attribute, src, to indicate the page that should represent that frame.
  • 10. Loading Content - <frame> Element <frame src="/html/top_frame.htm" /> <frame src="/html/main_frame.htm" /> <frame src="/html/bottom_frame.htm" />
  • 11. The <frame> Element Attributes • src: indicates the file that should be used in the frame. Its value can be any URL. For example, src="/html/top_frame.htm" will load an HTML file avaible in html directory. • name: attribute allows you to give a name to a frame. It is used to indicate which frame a document should be loaded into. This is especially important when you want to create links in one frame that load pages into a second frame, in which case the second frame needs a name to identify itself as the target of the link. • frameborder: attribute specifies whether or not the borders of that frame are shown; it overrides the value given in the frameborder attribute on the <frameset> element if one is given, and the possible values are the same. This can take values either 1 (yes) or 0 (no).
  • 12. The <frame> Element Attributes • noresize: By default you can resize any frame by clicking and dragging on the borders of a frame. The noresize attribute prevents a user from being able to resize the frame. For example noresize=" noresize". • scrolling: controls the appearance of the scrollbars that appear on the frame. This takes values either "yes", "no" or "auto". For example scrolling="no" means it should not have scroll bars.
  • 13. Browser Support - <noframes> Element • If a user is using any old browser or any browser which does not support frames then <noframes> element should be displayed to the user. • In XHTML you must place a <body> element inside the <noframes> element because the <frameset> element is supposed to replace the <body> element, but if a browser does not understand the <frameset> element it should understand what is inside the <body> element contained in the <noframes> element. • You can put some nice message for your user having old browsers. For example Sorry!! your browser does not support frames.