Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 WHAT are frames? what.html are.htmlframes.html

2 Intro to Frames HTML frames allow you to display more than 1 HTML document in the same browser window. Every HTML document is called a frame and each frame is independent. There are some disadvantages of using frames: you must keep track of more HTML documents difficult to print the entire page Components of HTML Frames: Frameset element The frameset element states HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them. Frame element The tag defines one particular window (frame) within a frameset.

3 Arranging Frames Vertical Frameset: Creates frames arranged in columns Example: Horizontal Frameset: Creates frames arranged in rows Example:

4 Arranging Frames cont. Mixed Frameset: Creates frames arranged in columns & rows frameA.html: height-25% frameB.html: height-75% width-25% frameC.html: width-30% height-75% Notes about HTML Frames: The frameset column or row size can also be set in pixels such as cols=“100,600“ One of the columns or rows can be set to use the remaining space of the browser window, with an asterisk (cols=“33%,*") You can not use the tags together with the tags!

5 Arranging Frames cont. iFrames: Creates an inline frame (a frame inside an HTML page). height=“any number” & width= “any number” can be added to the tag to set the size of the iframe  Frame borders can be removed by adding the frameborder=“0” to either the or tag  Buttons or hyperlinks can be directed to open pages in specific frames by adding: name=“any name” to the or tag and adding: target=“same name” to the tag of the button or hyperlink.  To remove the ability for the user to resize the frames the noresize=“noresize” can be added to the tag.

6 Frames: Review HTML frames allow you to display more than 1 HTML document in the same browser window in the following ways: Vertical Frameset Horizontal Frameset Mixed Frameset Frame sizes can be set using percentages or pixels Asterisks = fill the rest of the browser window tags can not used with the tags Buttons can open pages in specific frames by naming the frame and setting the target with the same name iFrame


Download ppt "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."

Similar presentations


Ads by Google