Presentation is loading. Please wait.

Presentation is loading. Please wait.

Frames 1 Lecture HTML: Frames and Miscellaneous Tags.

Similar presentations


Presentation on theme: "Frames 1 Lecture HTML: Frames and Miscellaneous Tags."— Presentation transcript:

1 Frames 1 Lecture HTML: Frames and Miscellaneous Tags

2 Frames 2 Frames permit you to divide the viewing area into a number of independent areas, each of which can contain its own HTML document Frames can be resized The tag describes the rows or columns; the tag describes the contents of the frame A multiframe document typically does not have a layout; is not recognized if placed after a tag

3 Frames 3 Examples of Frames

4 Frames 4 Targets of Frames To create targeted links, give frames a name using the NAME attribute of the tag An anchor that displays a new page in a frame might appear as Load Second menu The TARGET attribute has several special values –_SELF: loads file into current frame –_PARENT: loads file into enclosing frame of current frame –_TOP: loads file into current window –_BLANK: opens a new window and loads the file

5 Frames 5 Generic Frames Page

6 Frames 6 Contents of the Frames Content.html Introduction The World Wide Web was originally conceived by Tim Berners-Lee while he was working at CERN. Title.html Programming the World Wide Web menu.html Chapter 1 Chapter 2 Chapter 3 copyright.html copyright 1999, All Rights Reserved

7 Frames 7 Appearance of Generic Frames Page

8 Frames 8 Attributes of TAg name =... assigns a name to the current frame. This name may be used as the target of subsequent links. Noresize, When present, this boolean attribute tells the browser that the frame window must not be resizeable. scrolling = auto|yes|no –auto: browser should provide scroll bars when necessary. This is the default value. –yes: browser should provide scroll bars for the frame window. –no: browsers should not provide scrolling for the frame window.

9 Frames 9 Attributes of Tag (cont’d) frameborder = 1|0 –1: tells the browser to draw a separator between this frame and every adjoining frame. This is the default value. –0: tells the browser not to draw a separator between this frame and every adjoining frame. Note that separators may be drawn next to this frame nonetheless if specified by other frames. marginwidth = pixels, specifies the amount of space to be left between the frame's contents in its left and right margins. The value must be greater than one pixel. The default value depends on the browser. marginheight = pixels, specifies the amount of space to be left between the frame's contents in its top and bottom margins. The value must be greater than one pixel. The default value depends on the user agent.


Download ppt "Frames 1 Lecture HTML: Frames and Miscellaneous Tags."

Similar presentations


Ads by Google