Download presentation
Presentation is loading. Please wait.
1
1Frames Recognize a web page that uses a frameRecognize a web page that uses a frame Identify advantages and disadvantages of using framesIdentify advantages and disadvantages of using frames Be aware of web accessibility issues when using framesBe aware of web accessibility issues when using frames Use the and tags to create a framesetUse the and tags to create a frameset Use the tag to display content when frames are not supportedUse the tag to display content when frames are not supported Create hyperlinks that target framesCreate hyperlinks that target frames Use the tag to create an inline frameUse the tag to create an inline frame
2
2 Overview of Frames Frames allow the use of multiple, independently controllable sections in a browser window. Frames allow the use of multiple, independently controllable sections in a browser window. Each section is called a "frame" and is created as a separate XHTML file. Each section is called a "frame" and is created as a separate XHTML file. Behind the scenes there is another file -- a "master" frameset file that controls the configuration of the entire browser window. Behind the scenes there is another file -- a "master" frameset file that controls the configuration of the entire browser window. http://www.webgrrls.com http://www.webgrrls.com http://www.webgrrls.com http://www.panynj.gov/aviation/jfkframe.H TM http://www.panynj.gov/aviation/jfkframe.H TM http://www.panynj.gov/aviation/jfkframe.H TM http://www.panynj.gov/aviation/jfkframe.H TM
3
3 Possible advantages of Using Frames Ease of Navigation Ease of Navigation Ease of Maintenance Ease of Maintenance Degrades Gracefully Degrades Gracefully Unifies Resources Unifies Resources
4
4 Disadvantages of Using Frames Not Universally Supported Not Universally Supported Not in future W3C Recommendations Not in future W3C Recommendations Bookmark Issues Bookmark Issues Accessibility Issues Accessibility Issues DON’T use unless really need capabilities!
5
5 Questions 1. List three disadvantages of designing a web site with frames. Which disadvantage seems most important to you? Why? 1. List three disadvantages of designing a web site with frames. Which disadvantage seems most important to you? Why? 2. How would you respond to a person who claims that you should never design a web site using frames? Explain. 2. How would you respond to a person who claims that you should never design a web site using frames? Explain. 3. True or False. A web site created using frames is more accessible than a web site that does not use frames. 3. True or False. A web site created using frames is more accessible than a web site that does not use frames.
6
6 XHTML Using Frames tag tag Used to divide up the browser windowUsed to divide up the browser window Container tagContainer tag tag tag Used to configure a single frame or portion of the browser windowUsed to configure a single frame or portion of the browser window Stand alone tagStand alone tag tag tag Used to configure content that should display if the browser does not support framesUsed to configure content that should display if the browser does not support frames Container tagContainer tag
7
7 Sample Frameset DTD & header <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- frameset.dtd"> <head> Sample Frameset Sample Frameset </head>
8
8 CircleSoft Web Design CircleSoft Web Design Site Links Site Links </frameset></html> Sample Frameset XHTML
9
9 XHTML tag The frameset tag The frameset tag Attributes: Attributes: bordercolorbordercolor colscols frameborderframeborder framespacingframespacing rowsrows titletitle
10
10 XHTML tag The frame tag The frame tag Attributes: Attributes: bordercolorbordercolor frameborderframeborder idid longdesclongdesc marginheightmarginheight marginwidthmarginwidth namename noresizenoresize scrollingscrolling srcsrc targettarget titletitle
11
11 XHTML tag The base tag The base tag Used to configure the default target for all the links on an entire web page Used to configure the default target for all the links on an entire web page Stand alone tag Stand alone tag Coded in the header section Coded in the header section
12
12 Inline Frames Also called floating frame Also called floating frame Can be placed in the body of a web page Can be placed in the body of a web page
13
13 XHTML tag The iframe tag The iframe tag Description of the lovely Spring wild flower, the Trillium Description of the lovely Spring wild flower, the Trillium Used to configure the default target for all the links on an entire web page Used to configure the default target for all the links on an entire web page Container tag Container tag
14
14 XHTML tag Attributes Attributes alignalign frameborderframeborder heightheight idid longdesclongdesc marginheightmarginheight marginwidthmarginwidth namename scrollingscrolling srcsrc titletitle widthwidth
15
15 Questions 1. Describe the uses of the area contained between the opening and closing tags. 1. Describe the uses of the area contained between the opening and closing tags. 2. You have created a frameset but the links in the navigation frame do not open in the frame you designed to hold the content. What might be the reason? How would you correct this? 2. You have created a frameset but the links in the navigation frame do not open in the frame you designed to hold the content. What might be the reason? How would you correct this? 3. Describe how the title attribute can be used on a tag to 3. Describe how the title attribute can be used on a tag to
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.