Windows and frames and the anchor tag. Frames Independent, scrollable portions of a Web browser window, with each frame capable of containing its own.

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.
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.
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
Creating Web Page Forms
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.
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.
HTML Essentials Frames and Frame Tags. Introduction A frame used to be an effective design tool Utilized space effectively by subdividing screen One idea:
WHAT are frames? what.html are.htmlframes.html. Intro to Frames HTML frames allow you to display more than 1 HTML document in the same browser window.
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.
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.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
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.
Windows and frames and the anchor tag. Frames Independent, scrollable portions of a Web browser window, with each frame capable of containing its own.
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.
Tutorial 5 Windows and Frames Section B - Working with Frames and Other Objects Go to Other Objects.
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
CO1552 – Web Application Development Linking Pages - The Basis of the Web.
HTML: Tables & Frames Internet Technology.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
1 HTML Frames
© Marty Hall, Larry Brown Web core programming 1 HTML Frames.
Week 9: HTML Tables and Frames HNDIT11062 – Web Development.
HTML Forms.
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
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
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.
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.
The Web Warrior Guide to Web Design Technologies
Tutorial 8 Designing a Web Site with Frames
Tutorial 8 Designing a Web Site with Frames
HTML Frames
Presentation transcript:

Windows and frames and the anchor tag

Frames Independent, scrollable portions of a Web browser window, with each frame capable of containing its own URL Each frame is its own independent HTML document AJAX “web 2.0” web pages were initially exploiting frames to pass data (browsers re-used their frame code too…)

Creating Framesets Frames can be created in rows, columns or both attribute: ROWS COLS

tag A frame container Can only contain tag Other tags are ignored

Code same: These holds 4 webpages 21 34

Frame dimensions Pixels: absolute sizing Percentages: relative sizing Asterisk (*) designates remainder of visible window You may combine the above kinds all at once List multiple frames with commas

frameset cols="40%, 60%" frameset cols="20, 50%,*" frameset cols="*, *,32 " Examples 40%60% 50%* **32

tag Used to specify options for individual frames, e.g., URLs Placed within tags Can be assigned a name using the NAME attribute, which can be used as a target for a link (A tag or javascript)

Frames Example Frame Example

AttributeDescription srcSpecifies the URL to be opened in the frame nameAssigns a name to an individual frame noresizeDisables the user’s ability to resize an individual frame scrollingDetermines whether a frame should include scrollbars marginheightSpecifies the top & bottom margins of the frame in pixels marginwidthSpecifies the left & right margins of the frame in pixels

Using the TARGET attribute TARGET attribute Determines in which frame or Web browser window a URL opens tag Used to specify a default target for all links in a document Menu systems are a popular use for frames One frame to contain the hypertext links Second frame to contain clicked URLs

Special Targets _top - kill all frames; the full window _self - the same frame _blank - always a new window _parent - in the parent frameset

Nesting Frames Nested frame: Frame contained within another frame Must be used to sub-divide frames URLs of frames are loaded in the order in which each tag is encountered Order your frame tags (in the html) in the order you want pages to be processed by the browser

Nesting Frames Example

Frame Formatting

Frame Formatting marginheight=”50”

The tag Displays an alternate message to users of those browsers Older browsers are incompatible with frames Solutions for those users: Show link to navigation frame’s web page Show link or provide a special navigation links page Provide links to where the user could upgrade their browser or submit a complaint

iFrames (Inline Frame) Create a box or “portal” anywhere inside your webpage which is a frame Similar to, except the it is used like an image tag is (width, height) longdesc=”this attribute is needed for non-visual browsers” exists within the normal DOCTYPE do not use iframe on the FRAMESET DOCTYPE

iFrame Example Lazy Poorman's Virtual Service.… old browsers see this.... buttons and whatever...

Frame design considerations Frame size – avoid making user scroll excessively Bookmarking can be a problem – what is bookmarked? Search engines cannot penetrate deeply into frames – code meta information carefully Not all browsers recognize frames; coding can cause repetitive work Frames are relatively complex

Alternate Uses Rich HTML editors The online text editors that go beyond the simple TEXTAREA form box almost all use iFrames or Frames Hidden size=0 frames Preload graphics without javascript coding store javascript code or data submit hidden forms; read results (1 st gen AJAX)

DOM / Javascript Frames are Window objects Security restrictions continue to limit your ability to manipulate objects between frames/windows You can code from the parent page to the child-frame page to a limited extent. Access to child frames is CUT if the child frame is not located on the same website!

Recommendations Do NOT use frames (general rule) Frames create user interface issues and security issues for browsers HTML 5 tried to kill frames; added to iFrame instead iFrames are commonly used; initially, iframes were the basis for AJAX Many “web 2.0” techniques depend upon the use of iframes