XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.

Slides:



Advertisements
Similar presentations
Frames. What are frames? The ability to divide the browser window into sections that can function independently of one another. Navigation within the.
Advertisements

Frames How to make a page that uses frames. Preview There used to be a time that frames were frowned upon because most browsers did not support them Nowadays.
Frames.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Multimedia and the World Wide Web HCI 201 Lecture Notes #5A.
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
COS 125 Day 25. Agenda  Assignment #7 Due  Final capstone progress report due next class  Assignment #8 Posted Due April 25 One more to go  Exam #5.
Frames 1 Lecture HTML: Frames and Miscellaneous Tags.
XP 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial 5.
XP Creating Web Pages with HTML, 3e Prepared by: C. Hueckstaedt, Tutorial 5 1 New Perspectives on Creating Web Pages with HTML Tutorial 5: Using Frames.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
The Power of Tables They aren't just for sitting stuff on anymore...
Start -> All Programs -> Classes -> Web Expressions -> Dreamweaver.
Create a Web Site with Frames
Web Technologies Lecture # 5 : HTML Frames. Objectives n Create/control appearance & placement of frames n Control the behavior of hyperlinks on pages.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Chapter 6 Working with Frames.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
Using Frames in a Web Site
Lecture on: Frames. FRAMES VERSUS TABLES Frames allow part of the page, usually a navigation bar, to stay put.
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
XHTML1 Topics Work with the Frameset Document Type Definition (DTD) Create frames Use the target and base attributes Create nested frames Format frames.
XP Using Frames in a Web Site Ali Alfayly. XP Tutorial Objectives Create frames for a Web site Control the appearance and placement of frames Control.
FRAMES. With frames, we can display more than one HTML document in the same browser window. Each HTML document is called the same browser window. Each.
Frame Page A Frame Page does the following: –Defines the size of each frame. –Defines how the window will be broken up – rows or columns. –Specifies which.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 7: Working with Frames Kelly L.
Working with HTML Frames The Good, The Bad & The Ugly.
CSCE 102 – Chapter 6 (Web Design and Layout) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
1 HTML Frames
1 Planning and Laying Out Frames Sketch the frame structure on paper before writing the HTML code two rows two columns.
For the World Wide Web Designing with Frames.  One of the most popular climbing schools in Colorado is Cliff Hangers. Located in Bolder, Cliff Hangers.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Chapter 8 HTML Frames. 2 Principles of Web Design Chapter 8 Objectives Understand the benefits and drawbacks of frames Understand and use frames syntax.
Web111a_chapt05.ppt HTM: Section 5 Frames A section of the browser window capable of displaying an entire web page Display multiple web pages on the screen.
Jozef Goetz, © 2011 Pearson Education Copyright (c) 2007Prentice-Hall. All rights reserved.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Using Frames in a Website GMU November 12-13, 2004.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
Windows and frames and the anchor tag. Frames Independent, scrollable portions of a Web browser window, with each frame capable of containing its own.
1 HTML Frames
Week 9: HTML Tables and Frames HNDIT11062 – Web Development.
HTML FRAMES With Frames, you can display more than one Web page in the same browser window.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
CSCI N241: Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Working with Frames.
1 HTML Frames
Microsoft FrontPage 2003 Illustrated Complete Creating a Frames Page.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Jozef Goetz, © 2011 Pearson Education Copyright (c) 2007Prentice-Hall. All rights reserved.
Using Frames in a Web Site Maureen Smith Professor, Saddleback College Tutorial 5.
XHTML Introductory1 Frames Chapter 5. XHTML Introductory2 Objectives In this chapter, you will: Work with the Frameset Document Type Definition (DTD)
HTML Comprehensive Concepts and Techniques Second Edition Creating Frames on a Web Page.
Introduction to HTML.
Client-Side Internet and Web Programming
Tutorial 8 Designing a Web Site with Frames
Designing a Web Site with Frames
Programming the Web using XHTML and JavaScript
Client-Side Internet and Web Programming
Tutorial 8 Designing a Web Site with Frames
HTML Frames
New Perspectives on Creating Web Pages with HTML
Creating Frames on a Web Page
Presentation transcript:

XP 1 Tutorial 5 Using Frames in a Web Site

XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window  Display a document within a frame  Format the appearance of frames  Direct a link target to a specific frame  Direct a link target outside of a frame layout  Format the color and size of frame borders  Incorporate an inline frame in a page

XP 3 Frames for a Web Site  To display information from several pages at the same time contributed to the creation of frames.  A frame is a section of the browser window capable of displaying the contents of an entire Web page.

XP 4 Disadvantages to Using Frames  The browser has to load multiple HTML files increasing the waiting time for potential customers.  It is difficult to bookmark pages that uses frames  Internet search engines can have problems adding framed pages to their listings  There is concern that frames can use up valuable screen space.

XP 5 Planning Your Frames  What information will be displayed in each frame?  How do you want the frames placed on the Web page? What is the size of each frame?  Which frames will be static, that is, always showing the same content?  Which frames will change in response to hyperlinks being clicked?  Should users be permitted to resize the frames to suit the needs?

title frames Creating a Frameset The frameset element describes how the frames are organized within the browser window. The frame element defines which document is displayed within a frame. The code does not include an opening and closing tag.

XP 8 The Frame Syntax  row1, row2, etc. are the heights of the frame rows  col1, col2, etc. are the widths of the frame columns  Row and column sizes can be specified: in pixels as a percentage of the total size of the frameset by an asterisk (*) to allocate any unclaimed space

XP 9 Frames of Different Sizes 160 pixels wide 25% of the width of the display area whatever space is left

XP 10 Specifying a Frame Source  To specify a source for a frame, use the tag with the syntax: The url is the filename and location of the page that you want to load.  You must insert the tag between the opening and closing tags.

<frameset rows="85,*"> <frame src= “head.htm" scrolling= "no” /> <frameset cols=“140,*"> <frame src= “links.htm” /> <frame src= “home.htm” />

<frame src= “head.htm" scrolling= "no” marginheight= “0” /> <frame src= “home.htm” marginheight= “0” marginwidth= “0” />

XP 13 Controlling the Appearance of Scroll Bars  By default, scroll bars are displayed when the content of the source page cannot fit within the frame.  You can override the default setting using the scrolling attribute.  scrolling is “yes” or “no”

XP 14 Specifying Margins Syntax  marginheight is the amount of space above and below the content of the page in the frame marginwidth is the amount of space to the left and right of the page  Setting margin values is a process of trial and error as you determine what combination of margin sizes looks best.

XP 15 Controlling Frame Resizing  By default, users can resize frame borders in the browser by simply dragging a frame border.  Some Web designers prefer to freeze, or lock, frames, so that users cannot resize them. this ensures that the Web site displays as the designer intended 

XP 16 Working with Frames & Links  By default, clicking a link within a frame opens the linked file inside the same frame.  Display links in: a different frame a new window the entire window  Controlling the behavior of links in a framed page, requires two steps: give each frame on the page a name, and then point each link to one of the named frames

XP 17 Files and Links in a Web Site home.htm philosph.htm lessons.htm tours.htm staff.htm

XP 18 Assigning a Name to a Frame  To assign a name to a frame, add the name attribute to the frame tag. name is of the frame 

XP 19 Specifying a Link Target  Use the target attribute to open a linked target page in a specific frame.  The syntax is: name is the name you’ve assigned to a frame  Home Page Our Philosophy Climbing Lessons

XP 20 Specifying a Link Target  When a page contains many links that should all open in the same frame, specify the target frame in the base element within the head. . tours  The target in the tag overrides any target specified in the tag

XP 21 Using Reserved Target Names  Reserved target names may be used in place of a frame name as the target in situations: when you want the page to appear in a new window when you want the page to replace the current browser window  _blank Loads the target into a new window _self _top

XP 22 Using Reserved Target Names  Tours  Staff Loads the staff.htm into the full display area, replacing the current frame layout Loads the tours.htm into the same frame

XP 23 Using the Tag  Use the tag to allow your Web site to be viewable using browsers that do not support frames.  When you use the tag, you must include tags. Page Title frames Page content

XP 24 Working with Frame Borders  There are additional attributes you can apply to the tag that allow you to change border size and appearance. For example: you can remove borders from your frames to free up more space for text and images you can change the color of the frame border so that it matches or complements the color scheme for your Web site

XP 25 Setting the Frame Border Color  To change the color of a frame’s border, use the bordercolor attribute.  The attribute can be applied either to an entire set of frames, using the tag, or to individual frames, using the tag.  The syntax for this attribute is: color is either a color name or a hexadecimal color value

XP 26 Setting the Frame Border Width  Another way of modifying frame borders is to change their widths using the border attribute.  The border attribute can be used only in the tag, and not in individual tags. The syntax is: value is the size of the border in pixels.  You can also remove the frame borders entirely using: value is “0” to hide the border and “1” to display it

XP 27 Creating Inline (Floating) Frames  A floating frame is displayed as a separate box or window within a Web page. The frame can be placed within a Web page in much the same way as an inline image.  url is the name and location of the file you want to display in the floating frame 

XP 28 Viewing a Floating Frame floating frame 