Chapter 6 Working with 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.
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.
1 Web Page Design Frames! - Chapt 20 Yet Another Way to Divide Up The Screen. Using HTML and JavaScript to Develop Website.
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.
 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.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
1 Advanced Frame Options Using NORESIZE  By default, users may resize frames unless you specify the NORESIZE attribute in the tag  Examples:
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.
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.
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.
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.
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.
1 HTML Frames
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.
HTML FRAMES With Frames, you can display more than one Web page in the same browser window.
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.
Frames. Dividing a page, called frameset, into frames, allow the visitor to see more than one page at a time Each frame contains its own Web page, and.
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.
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.
Client-Side Internet and Web Programming
HTML Structure II (Frame)
FRAMES.
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:

Chapter 6 Working with Frames

Agenda Create Frames Customize Frame Borders Control Frame Margins Add Alternative Text Prevent Frame Resizing Hide or Display Frame Scroll Bars Target a Link Create a Nested Frameset Create an Inline Frame

Create Frames You can use frames to divide the Web browser window into panes. This allows you to display different pages in the browser window at the same time. For example, you might use one frame to display a navigational page that lists links to different pages on your Web site and show the result of a clicked link in another frame. You can use the <FRAMESET> and <FRAME> tags to define the frame structure. The <FRAMESET> tag creates a frameset, dividing the window into sections, while the <FRAME> tag specifies which page goes into which frame.

Create Frames(Continued) Create and save a new HTML document, including only the basic <HTML>, <HEAD>, and <TITLE> tags. Below the </HEAD> tag, type <FRAMESET and a space. Define the frameset to include two or more rows or columns and specify a size in pixels for the rows or columns. To create frames in rows, type ROWS=”?,?”>, replacing ? with the height of each row in your frameset. To create frames in columns, type COLS=”?,?”>, replacing ? with the width of each column in your frameset. You can also set a row or column size as a percentage by typing the value followed by a percentage sign, such as 30%.

Create Frames(Continued) Type <FRAME NAME=”?”, replacing ? with a name for the frame. Type a space and SRC=”?”>, replacing ? with the name and location of the Web page you want to appear in the frame. Repeat the previous steps for each frame. Type </FRAMESET>. The Web browser displays the frames. In this example, two row frames appear in the browser window. You can use a nested frameset to combine rows and columns in a frameset.

Frameset attributes Optional Attributes Attribute Value Description cols pixels % * Specifies the number and size of columns in a frameset rows Specifies the number and size of rows in a frameset Standard Attributes Attribute Value Description class classname Specifies a classname for an element id Specifies a unique id for an element style style_definition Specifies an inline style for an element title text Specifies extra information about an element

Frame Attributes Optional Attributes Attribute Value Description frameborder 0 1 Specifies whether or not to display a border around a frame longdesc URL Specifies a page that contains a long description of the content of a frame marginheight pixels Specifies the top and bottom margins of a frame marginwidth Specifies the left and right margins of a frame name text Specifies the name of a frame noresize Specifies that a frame is not resizable scrolling yes no auto Specifies whether or not to display scrollbars in a frame src Specifies the URL of the document to show in a frame

Frame Attributes Attribute Value Description class classname Standard Attributes Attribute Value Description class classname Specifies a classname for an element id Specifies a unique id for an element style style_definition Specifies an inline style for an element title text Specifies extra information about an element

Example <frameset cols="33%,34%,33%" bordercolor="black" border="5"> <frame src="pw1.html"> <frameset rows="33%,34%,33%" border="5"> <frame src="pw2.html"> <frame src="pw3.html"> <frame src="pw4.html"> </frameset> <frame src="pw5.html">

CHANGE THE FRAME BORDERS You can change the thickness of your frame borders using the BORDER attribute. By default, Web browsers display the borders around your frames at a thickness of 6 pixels. You can set your frame borders to another size as well as control the color of the borders. Within the <FRAMESET> tag, type BORDER=”?”, replacing ? with a thickness value in pixels. The Web browser displays the frames with the designated border thickness.

CHANGE THE BORDER COLOR Within the <FRAMESET> tag, type BORDERCOLOR=”?”, replacing ? with a color value. The Web browser displays the frames with the designated color.

Control Frame Margins You can control the amount of space that appears between a frame border and the contents of the frame. Using the MARGINWIDTH and MARGINHEIGHT attributes, you can set margins for the top, bottom, left, and right sides of your frames. Margin space is measured in pixels. Within the <FRAME> tag, type MARGINWIDTH=”?”, replacing ? with the amount of space you want to set for the left and right margins. Type a space and MARGINHEIGHT=”?”, replacing ? with the amount of space you want to set for the top and bottom margins.

Add Alternative Text You can use the <NOFRAMES> tag to insert alternative text for users whose browsers do not support frames. In some cases, the user may have decided to turn off frame display. Alternative text can alert them to the content they are missing. Directly above the </FRAMESET> tag, add a line and type <NOFRAMES>. Type any alternative text you want to appear. Type </NOFRAMES>. If the user’s browser does not support frames, or the frame display is turned off, a page appears with the alternative text.

Prevent Frame Resizing By default, users can resize the frames in your Web page, allowing them to view more information in a frame. You can control your page layout by restricting frame resizing. This can be useful if you need the frame dimensions to remain fixed so that the content is viewed correctly. Type NORESIZE inside the <FRAME> tag of the frame you want to control. You do not assign a value to the NORESIZE attribute. You can repeat the previous step for any other frames for which you want to prevent resizing.

Hide or Display Frame Scroll Bars Web browsers automatically display scroll bars if a frame’s content exceeds the size of the frame. You can use the SCROLLING attribute to control when scroll bars appear. A yes value displays scroll bars, while a no value hides the scroll bars. Click inside the <FRAME> tag of the frame you want to control. Type SCROLLING=”?”, replacing ? with yes to display scroll bars or no to hide scroll bars. You can repeat the previous steps to control the scroll bars in other frames.

Target a Link You can make links on your pages open content in specific frames. To target links to particular frames, you must identify each frame with a unique name and then reference that name with the <A> tag’s TARGET attribute. You can also open a page into the entire browser window by using a TARGET value of “_top”. This breaks the user out of the current frameset. Open the HTML file where the link should appear. Type <A HREF=”?”, replacing ? with the target page. Type a space and TARGET=”?”>, replacing ? with the frame name. Type the link text. Type </A>.

OPEN ON TOP OF A FRAMESET Open the HTML file where the link should appear. Type <A HREF=”?”, replacing ? with the target page. Type a space and TARGET=”_top”>. Type the link text. Type </A>.

Create a Nested Frameset You can nest a frameset within another frameset, creating a combined frameset. For example, you might place a two-frame frameset within the largest frame of your main frameset. In the frameset document, add a line where you want to insert a nested frameset. Type <FRAMESET ROWS=”?,?”> to insert rows, or type <FRAMESET COLS=”?,?”> to insert columns, replacing ? with the row or column values for your frames. Add the frame tags to define the frame names and source pages. Type </FRAMESET> to complete the nested frameset.

Create an Inline Frame You can create a floating frame, also called an inline frame, that appears within the content of a Web page. Inline frames do not require a frameset. Type <IFRAME SRC=”?” where want to insert an inline frame, replacing ? with the name and location of the page you want to appear within the inline frame. Type a space and NAME=”?”, replacing ? with the name of the inline frame. Type a space and WIDTH=”?” HEIGHT=”?”>, replacing ? With width and height values. Type </IFRAME>.

Lab 6 Create Frames Customize Frame Borders Control Frame Margins Add Alternative Text Prevent Frame Resizing Hide or Display Frame Scroll Bars Target a Link Create a Nested Frameset Create an Inline Frame