HTML Structure II (Frame)

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

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.
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.
Compiled by ackoo Creating Frames. Compiled by ackoo Recall this… Table cell 1 Table cell 2 Table cell 3 Table cell 4.
Frames How to Create Frames in HTML Dr. Sanders. Why Frames? Frames allow you to have more than a single window on the screen at the same time. –You can.
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.
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.
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.
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.
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.
Jozef Goetz, © 2011 Pearson Education Copyright (c) 2007Prentice-Hall. All rights reserved.
HTML Hypertext Markup Language. WORKING WITH FRAMES.
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
HTML Frames.
© Marty Hall, Larry Brown Web core programming 1 HTML Frames.
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.
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.
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.
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.
Creating Frames on a Web Page
Introduction to HTML.
Client-Side Internet and Web Programming
Frames 8th March.
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
Table of Contents Creating Frames Frameset Tag and its attributes
Table of Contents Creating Frames Frameset Tag and its attributes
Table of Contents Creating Frames Frameset Tag and its attributes
Tutorial 8 Designing a Web Site with Frames
HTML Frames
Creating Frames on a Web Page
Frames Web Authoring.
Presentation transcript:

HTML Structure II (Frame) WEEK 3 HTML Structure II (Frame)

Contents Frame The use of frame How to use frame

Introduction Display more than one web pages at the same time. Must have at least 2 web pages One for the frame At least one page for the contents Advantage Fixed navigation bar can be provided Disadvantage Surfer cannot bookmark individual page Web site of other people or organization is nested inside the current webpage Not all web browser support frame

Web page with 2 Frame 2 3 1 Menu Content (menu.html) (intro.html or other web pages) 2 3 1 index.html

Codes for index.html <frameset rows="*" cols="15%,*" framespacing="0" frameborder="no" border="0"> <frame src=“menu.htm" name=“leftFrame" title="menu" /> <frame src="intro.htm" name=“mainFrame" scrolling="No" noresize="noresize" /> </frameset>

Codes for index.html Menu Content <frameset rows=“*” cols=“15%,*” framespacing=“0” frameborder=“no” border=“0”> Menu Content <frame src= “menu.htm” name= “leftFrame” title=“menu” /> <frame src=“intro.htm” name= “mainFrame" scrolling=“No” noresize=“noresize” /> </frameset>

Attributes of <frameset> BORDER: Sets the border between frames. The value determines the thickness in pixels. BORDERCOLOR: Sets the color of the border. Takes color names or hexadecimal color codes as value. Applicable only if FRAMEBORDER is set. FRAMEBORDER: A '1' or 'yes' value displays a border while '0' or 'no' removes the border. The BORDERCOLOR attribute work only if this attribute is set to display a border.

Attributes of <frameset> FRAMESPACING: Places some space between the edges of the frame and its contents. Value has to be specified in pixels COLS and ROWS: We've met COLS before. ROWS is similar and puts frames in horizontals rows instead of vertical columns. The values taken by these attributes can be a number (which determines the size in pixels) or percentages or wildcard

Attribute of <frame> SRC: required attribute URL of a document to load in the frame. BORDERCOLOR: Defines color for the border. FRAMEBORDER: Places a border. values can be '1' or 'YES' that display a border or '0' or NO' which prevent border display. MARGINWIDTH: Defines the amount of space in pixels between the left and right hand sides of the frame and its contents. MARGINHEIGHT: Defines the amount of space in pixels between the top and bottom edges of the frame and its contents.

Attribute of <frame> NAME: Specifies a name for the frame that can be used for easy reference. This is especially helpful when using scripting languages such as JavaScript or VBScipt. NORESIZE: Frames can be sized by the user if a border is present. By placing this attribute, you can prevent your visitors from resizing frames. This attribute takes no values. SCROLLING: 'YES' will display a scroll bar even though one is not required. ‘NO' will prevent any scroll bars and 'AUTO' lets the browser to decide if the frame needs a scroll bar.

Example of Nested Frame <FRAMESET ROWS="20%, *"> <FRAME SRC="topframe.html“ NAME="top"> <FRAMESET COLS="50%, *"> <FRAME SRC="leftbot.html“ NAME="left_bot"> <FRAME SRC="rightbot.html“ NAME="right_bot"> </FRAMESET>

Target Attribute of <a> _blank: Indicates a new window. _parent: Specifies the parent frame which contains the source link. _self: The new document is loaded in the same frame. _top: This indicates a new document window. It is a good way to break out of frames and load the document in the same window. frame-name: You can use this to specify in which frame the document should be loaded. RESOURCE WINDOW: This loads the document in a new browser window. This is same as _blank.

Example <A HREF="test.html" TARGET="_blank"> Loads test.html in a new browser window</A> <A HREF="test2.html" TARGET="_self"> Loads test2.html in this window</A> <A HREF="test2.html" TARGET=“mainFrame"> Loads test2.html in frame named mainFrame</A>

Lab Exercise Create your class time table as example below Merge and combine cells Used different color for different course