1 HTML Frames

Slides:



Advertisements
Similar presentations
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.
Advertisements

Frames.
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.
1 DePaul University SNL 262 Web Page Design Frames! - Chapt 20 Yet Another Way to Divide Up The Screen. Instructor: David A. Lash.
Linked Windows and Frames. Frames and Linked Windows2 Linked Windows n Information pointed to by hyperlink displayed in another window n Target attribute.
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...
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.
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.
HTML 2 FRAMES. Frames Intro Frames are a feature supported by Netscape 2.0 (and higher) Internet Explorer 3.0 (and higher) and a few other browsers. 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 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.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Reference for CIS127 and CIS 137.
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
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.
META tag META tag is the element in the HTML that interacts with the search engines. It’s contain 2 attributes that should always be used: NAME: is an.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
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.
Chapter 5: Windows and Frames
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.
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.
Web Page Design Frames! Yet Another Way to Divide Up The Screen. Using HTML and JavaScript to Develop Website.
Week 9: HTML Tables and Frames HNDIT11062 – Web Development.
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.
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
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.
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)
Introduction to HTML.
FRAMES.
Tutorial 8 Designing a Web Site with Frames
Designing a Web Site with Frames
Programming the Web using XHTML and JavaScript
Tutorial 8 Designing a Web Site with Frames
HTML Frames
New Perspectives on Creating Web Pages with HTML
Presentation transcript:

1 HTML Frames

Learning Objectives  Explore the uses of frames in a Web site  Display a document within a frame  Format the appearance of a frame 2

What is a frame?  Frames are sections of the browser window capable of displaying the contents of multiple webpages in a single Web page display 3

Remember!  The browser has to load multiple HTML files when working with frames 4

Planning Your Frames first  Before you start creating your frames, plan their appearance and how they are to be used: o What information will be displayed in each frame? o How do you want the frames placed on the Web page? o What is the size of each frame? o What Web pages will users first see when they access the site? o Should users be permitted to resize the frames to suit their needs? 5

Planning Your Frames Layout 6

Frameset  A frameset describes the frame layout  The element is used to store the definitions of the various frames in the file. These definitions will typically include: o Size and location of the frame o Web pages the frames display 7

 What is the tag used for frameset?  …  example Learning Frames define layout and frames here 8 Frameset

Layout Defined in Either Rows or Columns 9

Frames in rows or columns  You must choose to layout your frames in either rows or columns  To create a frame layout, you will use the rows and cols attributes of the element o The rows attribute creates a row of frames o The cols attribute creates a column of frames 10

 Creating a row frame layout o attribute name: rows o attribute value: number of pixels | percentage | * 11 rows attribute for

 Creating a column frame layout o attribute name: cols o attribute value: number of pixels | percentage | * 12 cols attribute for

Content of frames  So, now we have created the frame layout  But the frames are not yet visible!!  So, what goes inside the frames? HTML files!!! 13

 use tag within o & tags 14 Define frame source

Let’s create the first example 15

Creating a Nested frame structure 16 Combination of rows and cols

Creating a Nested frame structure 17 Learning Frames Remember correct nesting of the structures are ABSOLUTELY important here.

18 Nesting framesets  nesting one pair of tags in another

Practice example 19 streetsign logo here John Jay Link Class website Link Some Description here logo.html link.html home.html

Covered so far… 20

Learning Frame Styling 21

Quick recap from last class  What is the tag for creating frame structure?  What is the tag for inserting html files inside the frame structures? 22

Formatting a Frame  As developer, you can control three attributes of a frame: o Scroll bars o Whether or not the user is allowed to change the size of the frame o The size of the margin between the source document and the frame border 23

1. Hiding and Displaying 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  The scrolling syntax is: scrolling=“type” o scrolling can either be “yes” (to always display scroll bars) or “no” (to never display scroll bars) o Another option: “auto” 24

Example: Removing the Scroll Bars 25

26 2. Resizing of frames  restrict resizing of a frame o attribute name, noresize Remember: this attribute does not have any value

3. Specifying Frame Margins  Frame margins – the amount of space in between content and border o marginheight is the amount of space, in pixels, above and below the content of the page in the frame o marginwidth is the amount of space to the left and right of the page  The syntax for specifying margins for a frame: marginheight=“value” marginwidth=“value”  You can also use them together 27

Other Frame Structure attributes 28

29 Frame Border  Format the appearance of frame border o Change width of frame border o Change color of frame border  Applied to the tag  change width of frame border o attribute name: border o attribute value: “number of pixels”  change color of frame border o attribute name: bordercolor o attribute value: “a color”  example

Working with Frames and Hyperlinks  By default, clicking a link within a frame opens the linked file inside the same frame  But what if you want to open the hyperlink in a new window or in a new frame? o Controlled targeting  Let’s do this case study step by step! 30

Working with Frames and Hyperlinks (contd.)  You can display hyperlinks in many ways: o In a new window (we already know about this!) o In a different frame o In the entire window (overriding the current frame structure)  When you want to control the behavior of links in a framed page, there are two required steps: 1. Give each frame on the page a name 2. Point each hyperlink to one of the named frames 31

32 Working with Frames and Hyperlinks (contd.)  Step 1: assign name to each frame you create o attribute name, name o attribute value, “frame_name” o Note, you can provide any unique name for a frame. We will see shortly why frame name is important.

Example 33

Step 2: Specifying a Link Target  Now use the target attribute to open a page in a specific frame  The syntax for this is: target=“name of the frame” 34

Using Reserved Target Names  Reserved target names are special names that can be used in place of a frame name as the target  They are useful in situations: o Where the name of the frame is unavailable o When you want the page to appear in a new window o When you want the page to replace the current browser window  All reserved target names begin with the underscore character ( _ ) to distinguish them from other target names  Reserved target names are case-sensitive, they must be entered in lowercase 35

Using Reserved Target Names 36

Using the _top Target 37 target=“_top”

Using Reserved Target Names 38

How target=“_parent” works! 39

How target=“_parent” works! 40

How target=“_parent” works! 41

How target=“_parent” works! 42

How target=“_parent” works! 43

Using the base element 44  Base elements are used to set the target for entire frame  Inside the … o

Using the Element  Use the element to allow your Web site to be viewable using browsers that do or do not support frames  When a browser that supports frames processes this code, it ignores everything within the elements and concentrates solely on the code within the elements  When a browser that doesn’t support frames processes this code, it doesn’t know what to do with the and elements, so it ignores them  When you use the element, you must include elements, this way, both types of browsers are supported within a single HTML file 45

The Syntax  The syntax for the element is: title frames page content 46

Frameless Version of a Web Site 47