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.

Slides:



Advertisements
Similar presentations
Intro to HTML Basics HTML = Hypertext Mark-up Language HTML = Hypertext Mark-up Language HTML is a plain-text file that can be created using a text editor.
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.
Compiled by ackoo Creating Frames. Compiled by ackoo Recall this… Table cell 1 Table cell 2 Table cell 3 Table cell 4.
1 DePaul University SNL 262 Web Page Design Frames! - Chapt 20 Yet Another Way to Divide Up The Screen. Instructor: David A. Lash.
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...
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.
 You've probably come into contact with web sites in which the browser window seemingly allowed you to move around between several different pages. 
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
Frameset. FrameSet With frames, we can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each.
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.
1 Advanced HTML Joshua S. Simon Collective Technologies.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
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.
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.
HTML: Tables & Frames Internet Technology1. HTML: Tables Table tags ► surround the entire table ► header row (text is boldfaced) ► surround each row ►
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.
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 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.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Chapter 5: Windows and Frames
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
FRAMES. Frames allow you to divide the page into several rectangular areas and to display a separate document in each rectangle. Each of those rectangles.
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
1 HTML Frames
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
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.
Chapter 6 Frames and Image Maps Frame sets and frames Image Maps.
Introduction to HTML.
HTML Structure II (Frame)
FRAMES.
Tutorial 8 Designing a Web Site with Frames
Programming the Web using XHTML and JavaScript
Client-Side Internet and Web Programming
Table of Contents Creating Frames Frameset Tag and its attributes
Table of Contents Creating Frames Frameset Tag and its attributes
Table of Contents Creating Frames Frameset Tag and its attributes
Tutorial 8 Designing a Web Site with Frames
Creating Frames on a Web Page
Presentation transcript:

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 the page display in frames is the frameset document, which is an HTML document that contains instructions for how each frame is drawn and which HTML document is displayed in each frame.

HOW FRAMES WORK Uses the structural tag element Does not have a tag cols attribute Divides the window into two frame columns Within the container tags Needed for each frame on the page Specifies which HTML document to display This is what will display if the frames do not work Similar to the alternative text attribute provided for image tags

IN NOTEPAD Littlechair Index You need a frames-enabled browser to view this page.

SETTING UP A FRAMESET DOCUMENT Document Structure Uses instead of. From Jen’s Cookbook

LET’S TRY IT Complete Exercise 12-1: Setting Up a Framed Page Step 1: Open a new document in NotePad. Type the structure of the frameset as shown on the previous slide. Name the document frameset.html and make sure that you save it with the other files to ensure the pathnames are correct.

SETTING UP A FRAMESET DOCUMENT Decide number of columns and/or rows for the page and what size Settings are made within the tag Vertical frames use the cols attribute Specify width measurement for each column separated by commas Horizontal frames use the rows attribute Specify height separated by commas

Frame Measurement Three ways to specify sizes for frames Absolute pixel values Percentages Relative values SETTING UP A FRAMESET DOCUMENT

Adding and Nesting Frames Frames are added by inserting tags within the tags Within each tag, the src attribute specifies the URL of the document to load into that frame From Jen’s Cookbook SETTING UP A FRAMESET DOCUMENT

LET’S TRY IT Exercise 12-1 continued Step 2: Add two rows to the frameset as shown on the previous slide. Save the file and take a look in a browser. If pages aren’t showing up, make sure that the frameset document is saved in the same directory as the other files.

Adding and Nesting Frames Divide a larger frame into smaller frame Nest a second frame inside a current frameset. Replace a tag with a complete and tags. From Jen’s Cookbook SETTING UP A FRAMESET DOCUMENT

LET’S TRY IT Exercise 12-1 continued Step 3: Replace the bottom frame with a two-column frameset as shown on the previous slide. Save and view the frameset in a browser.

Borders By default borders appear in thick 3-D lines around the frames To control, use the frameborder and border attributes in the tag. To turn off borders completely, set border attribute to 0 Creates a smooth transition between frames SETTING UP A FRAMESET DOCUMENT

LET’S TRY IT Exercise 12-1 continued Step 4: Turn off the borders for the frameset using the border attribute. Save and view in the browser.

FRAME APPEARANCE AND FUNCTION 3 attributes for the tag Scrollbar Scrollbars will appear on an as needed basis Scrollbars will appear so that the viewer can scroll through the document if content is too large for the window. Scrollbars will not appear and viewer will not be able to scroll the document Best used for banners

LET’S TRY IT Exercise 12-1 continued Step 5: Turn off scrolling in the top frame. Save and view.

FRAME APPEARANCE AND FUNCTION 3 attributes for the tag Margin width You can control the amount of margin space inside each frame by adding extra space or setting the contents flush to the frame’s edge marginheight attribute controls the amount of space between the top and bottom edges of the frame and its contents. marginwidth attribute controls the space on the left and right edges Resizing the frame

LET’S TRY IT Exercise 12-1 continued Step 6: Set the margins to 0 in the top frame. Save and view.

FRAME APPEARANCE AND FUNCTION 3 attributes for the tag Resizing the frame By default, users can resize frames by clicking and dragging the borders between frames noresize attribute in the tag prevents users from doing this

LET’S TRY IT Exercise 12-1 continued Step 7: Add the noresize attribute to the top frame. Save and view.

TARGETING FRAMES Target a specific frame Tells the link which frame to use Naming the frame name attribute in the tag Targeting the frame Add the target attribute to each of the links and set the value to “main” When someone clicks on that link, the browser will load the new document in the frame called “main” wild risotto

TARGETING FRAMES Reserved target names top New document is loaded in the top level of the browser window, replacing all the frames with a single window This document will break out of its frameset and is displayed in the full browser window parent Causes the linked document to load into the parent frame The frameset that is one step up in the nested frame hierarchy self Causes the document to load into the same frame blank Opens a new browser window to display the linked document

LET’S TRY IT Exercise 12-1 continued Step 8: Name each of the frames as guided by your instructor Step 9: Set the appropriate targets for the links so the frameset functions properly In header.html, make sure that the home graphic links to the top level of the browser window In links.html, use the element in the of the document to make all of the links on the page link to the main window Save and view the frameset in the browser. Test the links to be sure that they load in the proper frames. Be sure the links back to the home page on each recipe page load in the top frame.

CONTENT FOR USERS WITHOUT FRAMES This will display some content for users without frames- enabled browsers. Place alternative content between tags Add everything you would put in an ordinary non-framed document tag with its attributes for setting background tiles and colors

LET’S TRY IT Exercise 12-1 continued Step 10: Add minimal content to the frameset document. Make sure that it is useful for users who don’t have frames.

TEST YOURSELF 1.What makes frameset documents different from all other HTML documents? 2.On a separate sheet of paper, sketch the frameset that results from the following code: a. b. c. 3.How do you make a linked document appear in the top level of the browser, instead of within the frame?