HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.

Slides:



Advertisements
Similar presentations
Frames.
Advertisements

Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
HTML Concepts and Techniques Fourth Edition Project 6 Using Frames in a Web Site.
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.
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.
Using Frames in a Web Site
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 Frame Options Using NORESIZE  By default, users may resize frames unless you specify the NORESIZE attribute in the tag  Examples:
HTML Essentials Frames and Frame Tags. Introduction A frame used to be an effective design tool Utilized space effectively by subdividing screen One idea:
Creating an Expression Web Site
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.
Web Technologies Website Development Trade & Industrial Education
Website Development with Dreamweaver
Chapter 5 Creating an Image Map.
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.
HTML Concepts and Techniques Fourth Edition Project 6 Using Frames in a Web Site.
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.
Creating Tables in a Web Site
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.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
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.
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.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
CH. 7 Web Page Design –Page Layout with Frames Mr. Ursone.
Chapter 2 Working with Images and Links. Chapter Objectives Insert and align an image Change the workspace Add borders and margins to an image Copy page.
1 HTML Frames
Using Frames in a Web Site Project 6. Project Objectives Project 6: Using Frames in a Web Site 2 Define terms related to frames Describe the steps used.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
Web Page Design Frames! Yet Another Way to Divide Up The Screen. Using HTML and JavaScript to Develop Website.
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.
INTRODUCTORY Tutorial 9 Creating Frames. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Decide when to use frames for a Web site Learn.
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.
Jozef Goetz, © 2011 Pearson Education Copyright (c) 2007Prentice-Hall. All rights reserved.
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.
Creating Frames on a Web Page
Introduction to HTML.
Programming the Web using XHTML and JavaScript
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
HTML Frames
Creating Frames on a Web Page
Presentation transcript:

HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site

Chapter 6: Using Frames in a Web Site 2 Chapter Objectives Define terms related to frames Describe the steps used to design a frame structure Plan and lay out a frameset Create a frame definition file that defines three frames Use the tag

Chapter 6: Using Frames in a Web Site 3 Chapter Objectives Use the tag Change frame scrolling options Name a frame content target Identify Web pages to display at startup Set frame rows and columns Create a navigation menu page with text links Create a home page

Preparation Create a Ch 6 folder in your HTML directory Copy all the stuff from P:\HTML Stuff\Chapter06\ChapterFiles into your Ch 6 folder DO NOT MOVE THE ENTIRE FOLDER…just copy and paste all the files within it to yours! Read Project on pg. 260 Chapter 6: Using Frames in a Web Site 4

5 Creating a Frame Definition File When frames are used, browser actually contains multiple web pages or image files. A frame definition file defines the layout of the frames in a Web site and specifies the Web page contents of each frame. A frameset is used to define the layout of the frames that are displayed. Think of it as a window with various panes. Within each pane is a separate web page.

Chapter 6: Using Frames in a Web Site 6 Creating a Frame Definition File First step is to create a frame definition file. This gets loaded as soon as a visitor enters your website. It is used to define the pages that will be loaded initially and when various components are clicked on.

Chapter 6: Using Frames in a Web Site 7 Frame Tag Attributes Src – used to define which web page will be displayed at startup. Name – used to give that frame a target name so you can use it to display different web pages. Pg example

Frameset Within the tag, you specify the number of columns and rows in the display area Look at the example on pg. 265 –A) has two rows –B) has two columns Look at the bottom of page 265 and top of pg. 266 to see the frame definition file used to create these. Check out the code on pg. 266 to see another example of frameset attributes. Chapter 6: Using Frames in a Web Site 8

Frameset attributes - continued You can turn borders on/off and also set the margins in # of pixels. Look at this same frame on pg. 267 where margins have been set to 40 pixels. See the space created around each ‘window pane’. Scrolling – if you set this to ‘no’, the user CAN NOT scroll the window. Look at the example on pg It is ON by default, you will have to turn it off if you desire. Noresize – if used, the user can’t resize the frames. Example on pg Chapter 6: Using Frames in a Web Site 9

Creating the frame definition file Like tables, it is a good idea to sketch out what you want, so that when you start writing your code, it works! You will need a navigation menu – this is most often found on the left side of the website. Effectively place the main target frame… this is the usually the only one that changes. Make sure this frame is large enough to contain the content and convenient enough for the visitor to see where it is. Look at the examples on pg Chapter 6: Using Frames in a Web Site 10

Writing the code for the frame definition This is completely different from anything you’ve done before. DOCTYPE statement is DIFFERENT than before. Instead of the transitional document type, you will use the frameset document type. Match and nest your tags correctly. Can be tricky Develop the pages that go in each frame. Name the target frames so you can use this name when you create links in the navigation pane. Chapter 6: Using Frames in a Web Site 11

Chapter 6: Using Frames in a Web Site 12 Entering Initial HTML Tags to Define the Web Page Structure Do page 273 and enter the code for the frame definition file. Save the file as framedef.html Validate the file to make sure there are NO errors. When I did this I got 1 error about no closing tag that was indeed there… It may do this because there are no tags in a frame definition file.

Chapter 6: Using Frames in a Web Site 13 Defining Columns and Rows in the Frameset You can define however many columns and rows you’d like. Look at the bottom of pg. 274 and you can see the code to produce 3 columns. You can specify the columns as a percentage of the total screen size, as a number of pixels, or with an *. Using the percentage allows the browser window to change as it is resized. In pixels, it cannot. A * is used to simply divide it into equal parts.

Chapter 6: Using Frames in a Web Site 14 Defining Columns and Rows in the Frameset We will use 2 frames for this page. One is the navigation pane, the other is the main window where the content changes. The menu will remain constant as the main window changes. We have to assign target names to know where to display the changed web pages. Turn borders off. Do page Validate the code. When you finish, your code will look like pg (next slide) Displaying this in a browser will show NOTHING!

Chapter 6: Using Frames in a Web Site 15 Saving, Validating, and Printing the HTML File

Chapter 6: Using Frames in a Web Site 16 Creating the menu.html file Do pg (Make sure you use the already validated version of the DOCTYPE statement. Here you will use the one you’ve been using. You only used a different one in the frame definition file.) Save this file as menu.html (After all, this is what you defined in your frame definition file!) This creates the navigation side of the frame. Notice that you will use the target attribute that tells the href document where to appear if that link is clicked.

Creating home.html Do pgs Save this file as home.html Validate this file also. To test this, you have to open framedef.html in the browser to make sure it is all displayed properly. The other web pages are already created, i.e. necklaces, watches, bracelets, and order form. ALL links should work. When they do, show this to me. Chapter 6: Using Frames in a Web Site 17

Viewing the Frame Definition File Using a Browser Chapter 6: Using Frames in a Web Site 18

Testing and Printing the Links Chapter 6: Using Frames in a Web Site 19

What am I to do now? You ask…. NO homework! For a lab for this chapter – –In the Lab: Lab2 – Bright Idea, LLC Web site FOLLOW the directions EXACTLY….make sure you name the files as requested. We’ll work on this today and in class Thursday. If you don’t get it finished by then, you can turn it in to me after Thanksgiving. This will be the last chapter we cover. Your final exam will cover Ch There will be questions and a hands-on component. Chapter 6: Using Frames in a Web Site 20