Creating Frames on a Web Page

Slides:



Advertisements
Similar presentations
Frames. What are frames? The ability to divide the browser window into sections that can function independently of one another. Navigation within the.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Creating Tables in a Web Site
Frames.
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.
Frames 1 Lecture HTML: Frames and Miscellaneous Tags.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
Chapter 6 Working with Frames.
Lesson 4 HTML Structural Design Techniques
Using Frames in a Web Site
XHTML1 Topics Work with the Frameset Document Type Definition (DTD) Create frames Use the target and base attributes Create nested frames Format frames.
Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize.
1 Advanced Frame Options Using NORESIZE  By default, users may resize frames unless you specify the NORESIZE attribute in the tag  Examples:
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Creating Tables in a Web Site
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
Dreamweaver CS4 Concepts and Techniques Chapter 7 Page Layout with Frames.
HTML, Third Edition--Illustrated1 HTML – Illustrated Introductory, Third Edition Unit H Controlling Page Layout with Frames and Tables.
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
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.
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.
Writing a JavaScript User-Defined Function  A function is JavaScript code written to perform certain tasks repeatedly  Built-in functions.
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.
1 Creating a Second Web Page This section shows you how to create the Huntington Beach Web site.
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.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 6.
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.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Using Frames in a Website GMU November 12-13, 2004.
1 Creating the Header Page The header frame always displays on the AHS Web site The image (screagle.gif) that will go in the header is contained on the.
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.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Creating and Editing a Web Page
Microsoft FrontPage 2003 Illustrated Complete Creating a Frames Page.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
1 Creating a Menu Bar on a Secondary Web Page  It is important for visitors to be able to move easily from one page to another  You will create a menu.
1 Your Web Page title body of Web page main heading H2 heading bulleted list paragraph.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
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.
HTML Structure II (Frame)
Chapter A - Getting Started with Dreamweaver MX 2004
Project 8 Creating Style Sheets.
Creating Tables in a Web Site Using an External Style Sheet
Table of Contents Creating Frames Frameset Tag and its attributes
Creating a Web Site with Links
Table of Contents Creating Frames Frameset Tag and its attributes
Using Frames in a Web Site
Table of Contents Creating Frames Frameset Tag and its attributes
Creating Tables in a Web Site
Project 5 Creating an Image Map.
HTML Frames
Creating Forms on a Web Page
Project 4 Creating an Image Map.
Creating and Editing a Web Page
Layout and Design with Tables and Frames
Presentation transcript:

Creating Frames on a Web Page Project 5 Creating Frames on a Web Page

Objectives Define terms related to frames Describe the steps used to design a frame structure Plan and lay out frameset Create a frame definition file Use the <FRAMESET> tag Use the <FRAME> tag Change frame scrolling options

Objectives Name a frame content target Identify Web pages to display at startup Set frame rows Set frame columns Create a header page with an image and text Create a navigation page Create a home page

Introduction Frames divide a Web page into more than one window A frame is a rectangular area (window) in which text or graphics can appear A frame definition file contains the layout of the frames on the Web page You will need a separate HTML file for each frame on your Web page

Creating Web Pages with Frames Frames can be used: To allow a Web site visitor to view more than one page at a time For navigation To display information that must stay on the screen as other parts of the page change

Creating Web Pages with Frames

Using Frames To use frames, create a frame definition file using these three tags:

header.htm in frame 1, scrolling off Using Frames header.htm in frame 1, scrolling off two rows created menu.htm in frame 2 two columns created home.htm in frame 3 target name frameset ending tags

Using Frames The frame definition file also contains additional information:

This code produces… <HTML> <HEAD> <TITLE>Sample of Two Horizontal Frames</TITLE> </HEAD> <FRAMESET ROWS=“30%, 70%”> <FRAME SRC=“menu2.htm”> <FRAME SRC=“home2.htm” NAME=“win-main”> </FRAMESET> </HTML>

… this frames page row border row

This code produces… <HTML> <HEAD> <TITLE>Sample of Two Vertical Frames</TITLE> </HEAD> <FRAMESET COLS=“30%, 70%> <FRAME SRC=“menu1.htm”> <FRAME SRC=“home1.htm” NAME=“win-main”> </FRAMESET> </HTML>

… this frames page columns

This code produces… <HTML> <HEAD> <TITLE>Andrews High School Class of ’90</TITLE> </HEAD> <FRAMESET ROWS=“30%, 70%” FRAMEBORDER=“NO”> <FRAME SRC=“header.htm” SCROLLING=“NO”> <FRAMESET COLS=“25%,75%”> <FRAME SRC=“menu.htm” SCROLLING=“NO”> <FRAME SRC=“home.htm” NAME=“win-main”> </FRAMESET> </HTML>

… this frames page no border

Planning and Laying Out Frames Sketch the frame structure on paper before writing the HTML code two rows two columns

Start Notepad

Enter Initial HTML Tags

sizes of rows as a percentage of the screen Setting Frame Rows Use the ROWS attribute in the <FRAMESET> tag to set the number and sizes of rows <FRAMESET ROWS=“30%, 70%”> sizes of rows as a percentage of the screen

Setting Frame Rows Additional rows may be added by simply specifying the height in percentage of screen height or number of pixels Asterisks may be used instead of numbers to evenly divide the remaining space available

Enter the FRAMESET tag on line 6 of your document Setting Frame Rows Enter the FRAMESET tag on line 6 of your document first row is 30% high second row is 70% high

Identifying the Header Content The frame in the first row will display the header Web page A <FRAME> tag must define each frame in the frame definition file Use the SRC attribute to identify the Web page that will display in the frame You will turn off scrolling because the header can display without having to scroll

Identifying the Header Content Enter the FRAME tag on line 7 of your document Web page that displays in first frame scrolling turned off for first frame

Setting Frame Columns Columns divide the screen vertically The COLS attribute works like the ROWS attribute If you need more than two columns, you must include the dimensions for the columns in the <FRAMESET> tag

Enter the FRAMESET tag on line 9 of your document Setting Frame Columns Enter the FRAMESET tag on line 9 of your document first column is 25% wide second column is 75% wide

Identifying the Column Content The first column will display the navigation page that will remain constant Do not turn off scrolling, in case further links are added in the future The default scrolling setting is AUTO The scroll bar will automatically be available for the frame, if needed

Identifying the Column Content The second column will display variable information Use the NAME attribute to give that frame a target name Links can use this target to direct the display of subsequent Web pages to that frame

Identifying the Column Content Web page menu.htm displays in a second frame Web page home.htm displays in a third frame Name of third frame; other Web pages can use as a target Enter the FRAME tags on lines 10 and 11 of your document

Enter the /FRAMESET tags on lines 13 and 14 of your document Ending the Framesets You must enter a </FRAMESET> tag for each <FRAMESET> tag begin frameset 1 begin frameset 2 end frameset 1 end frameset 2 Enter the /FRAMESET tags on lines 13 and 14 of your document

Saving the HTML File Save the HTML file on the HTML Data Disk with framedef.htm as the file name file name

Creating the Header Page The header frame always displays on the AHS Web site The image (screagle.gif) that will go in the header is contained on the HTML Data Disk

Entering Initial HTML Tags Select New from the File menu Enter the initial HTML tags, as usual, and type AHS Header Frame as the title Make the background color navy: <BODY BGCOLOR=“NAVY”> Press ENTER twice Click the blank line (line 6)

Entering Initial HTML Tags background color

Adding an Image and a Heading Create a one-row borderless table that contains the image and heading text Enter this HTML code starting on line 7

Saving the HTML File Save the HTML file on the HTML Data Disk with header.htm as the file name file name

Entering Initial HTML Tags Select New from the File menu Enter the initial HTML tags, as usual, and type AHS Menu Frame as the title Set the colors of the background, body text, and the links by entering the following tag: <BODY BGCOLOR=“#FFCC00” LINK=“NAVY” VLINK=“NAVY” ALINK=“NAVY”>

Entering Initial HTML Tags Press the ENTER key twice Click the blank line (line 7)

Adding Hypertext References and Targets Enter this HTML code starting on line 7 to create the navigational links:

Adding Hypertext References and Targets The target attribute tells the browser in which frame to open the link

Saving the HTML File Save the HTML file on the HTML Data Disk with menu.htm as the file name file name

<BODY LINK=“RED” VLINK=“RED” ALINK=“RED”> Creating the Home Page Select New from the File menu Enter the initial HTML tags, as usual, and type AHS Home Frame as the title Set the color of links to red: <BODY LINK=“RED” VLINK=“RED” ALINK=“RED”> Press ENTER twice Click the blank line (line 6)

Creating the Home Page Enter this HTML code starting on line 7 to create the navigational links:

Saving the HTML File Save the HTML file on the HTML Data Disk with home.htm as the file name file name

Viewing and Printing the HTML Files Using your Browser Start your browser Type a:\framedef.htm in the address box and then press the ENTER key The three Web pages created in this project display on the Web site home page

Viewing and Printing the HTML Files Using your Browser frame 1 header.htm frame 3 home.htm frame 2 menu.htm

Viewing and Printing the HTML Files Using your Browser In the Print dialog box of the browser, under the Print Frames section, are three options: As laid out on screen Only the selected frame All frames individually The default is to print all frames individually For this project, print as laid out on screen

Viewing and Printing the HTML Files Using your Browser Click the Print button on the Standard Buttons toolbar

Testing the Links Click the Reunion News link on the menu.htm frame Click all other links in the frame, ending with Home

Printing all HTML Files Click the home.htm button on the Standard taskbar Select Print from the File menu Repeat the first two steps for the framedef.htm, header.htm, and menu.htm files Close Notepad and close your browser

Advanced Frame Options Using NORESIZE By default, users may resize frames unless you specify the NORESIZE attribute in the <FRAME> tag Examples: <FRAME SRC=“header.htm” SCROLLING=“NO” NORESIZE> <FRAME SRC=“menu.htm” NORESIZE> <FRAME SRC=“home.htm” NAME=“win-main” NORESIZE>

Designing a Four-Frame Structure A four frame structure might work for this Web site design:

Designing a Four-Frame Structure <HTML> <HEAD> <TITLE>Andrews High School Class of ’90</TITLE> </HEAD> <FRAMESET ROWS=“30%,70%”> <FRAMESET COLS=“25%,75%”> <FRAME SRC=“logo4.htm” SCROLLING=“NO”> <FRAME SRC=“header4.htm” SCROLLING=“NO”> </FRAMESET> <FRAME SRC=“menu.htm” SCROLLING=“NO”> <FRAME SRC=“home.htm” NAME=“win-main”> </HTML>

Summary Define terms related to frames Describe the steps used to design a frame structure Plan and lay out frameset Create a frame definition file Use the <FRAMESET> tag Use the <FRAME> tag Change frame scrolling options

Summary Name a frame content target Identify Web pages to display at start-up Set frame rows Set frame columns Create a header page with an image and text Create a navigation page Create a home page

Summary Frames divide a Web page into more than one window A frame is a rectangular area (window) in which text or graphics can appear A frame definition file contains the layout of the frames on the Web page You will need a separate HTML file for each frame on your Web page

What You Should Know

Project 5 Complete