Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: 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

Chapter 3 – Web Design Tables & Page Layout
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.
1 DePaul University SNL 262 Web Page Design Frames! - Chapt 20 Yet Another Way to Divide Up The Screen. Instructor: David A. Lash.
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.
 You've probably come into contact with web sites in which the browser window seemingly allowed you to move around between several different pages. 
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.
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.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
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.
Web Technologies Website Development Trade & Industrial Education
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
CIS67 Foundations for Creating Web Pages Professor Al Fichera Reference for CIS127 and CIS 137.
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.
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.
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.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
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
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
REEM ALMOTIRI Information Technology Department Majmaah University.
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)
Introduction to HTML.
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
Presentation transcript:

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames

Lesson 9 Objectives Define frames and the purpose of the frameset document Use the and tags Create a frameset document Identify the purpose of the tag Target links from one frame to another Specify default targets using the tag Create borderless frames, and control margins and scrolling in frames Identify the purpose of inline frames Discuss the appropriate use of frames Consider search engine optimization (SEO) issues when using frames

The Tag A container tag, requires a closing tag Determines the frame types and sizes on the page Two frame types: – Columns – Rows

Columns Example This frameset was created by the following code:

Rows Example This frameset was created by the following code:

The Tag Defines the content in each frame Placed between the tags The src attribute specifies the file that will appear in the frame In example, the page that will appear in the top frame is the file fl-toc.html, and the page that will appear in the lower frame is fl-second.html:

The Frameset Document Contains the the, and elements The and tags will create frames only if they are placed correctly into this document – In the frameset document, the element takes the place of the element – The opening tag follows the closing tag – The tag must contain either the rows attribute or the cols attribute, or both

Viewing Source with Framesets Click on the frame you want to view Take the necessary steps to view the source code The same instructions apply to printing from a frame

The Tag For user agents that cannot render frames Displays alternative text or images – In some ways, similar to the alt attribute for the tag Code: If you had a frames-capable browser, you would see frames here

Targeting Frames with Hyperlinks Use the name attribute to name a frame, then target the frame name with hyperlinks The syntax for naming a frame is as follows: The following code names a frame: The following code targets this frame: Visit James If a user clicks the Visit James link, the James page will open in the Authors frame

Specifying a Base Target A base target automatically sets a default target frame for all links in a page Created using the tag Code: This code will cause all linked pages to open in the frame named “main” The href attribute is optional

Borders, Margins and Scrolling To create borderless frames, add the frameborder attribute to the tag – frameborder= "1" causes borders to display (the default) – frameborder= "0" hides borders Example:

Borders, Margins and Scrolling (cont'd) Frame margin width and height – The marginheight attribute designates the space, in pixels, between the top and bottom margins – The marginwidth attribute designates the space, in pixels, between the left and right margins

Borders, Margins and Scrolling (cont'd) Scrolling frames – The scrolling attribute to the tag controls whether the scrollbar appears – The scrolling attribute values: "yes" — enables scrolling (the default) "no" — disables scrolling "auto" — allows the browser to decide Example:

Inline Frames Inserts an HTML or XHTML document inside another Also called "floating frames" Created with the tag The browser reads the tag from the file, then makes a separate request to the server for the embedded file

Inline Frames (cont'd) Simple XHTML page with inline frame: iFrame Example This text is found in iframe.html Your browser does not support frames This text is also found in iframe.html. The next slide shows the results of this code…

Inline Frames (cont'd)

Inline frames are useful for: – Web documents in which all content will remain static, except for one section (e.g., a weekly special) – the frequently changed section can be an inline frame, which can be quickly modified when necessary without editing the entire page – Documents that you prefer to embed in a page instead of placing on a separate page or providing as a download (such as text or a PDF)

Appropriate Use of Frames Frames are useful only in specific situations Consider the following issues: – Function – Appeal – Development challenges – Accessibility limitations – Usability with the browser Back button

Frames and Search Engine Optimization In general, using frames will lower your page's rank in a search engine Many search engine spiders do not follow the frame sources from the frameset page

Lesson 9 Summary Define frames and the purpose of the frameset document Use the and tags Create a frameset document Identify the purpose of the tag Target links from one frame to another Specify default targets using the tag Create borderless frames, and control margins and scrolling in frames Identify the purpose of inline frames Discuss the appropriate use of frames Consider search engine optimization (SEO) issues when using frames