1 / 15

Frameset

Frameset. popo. 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 frame is independent of the others. popo. FrameSet. The Frameset Tag

sienna
Download Presentation

Frameset

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Frameset • popo

  2. 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 frame is independent of the others. • popo

  3. FrameSet • The Frameset Tag • The <frameset> tag defines how to divide the window into frames • Each frameset defines a set of rows or columns • The values of the rows/columns indicate the amount of screen area each row/column will occupy • popo

  4. FrameSet • <html> • <frameset rows="30%,*"> • <frame src="menu.html"> • <frame src="content.html"> • </frameset> • </html • popo

  5. FrameSet • In the example frameset with two columns. • The first column is set to 30% of the width of the browser window. • The second column is set to 70% of the width of the browser window. • The HTML document “menu.htm" is put into the first column, and the HTML document “content.htm" is put into the second column • popo

  6. FrameSet • If a frame has visible borders, the user can resize it by dragging the border. • To prevent a user from doing this, you can add noresize="noresize" to the <frame> tag. • popo

  7. FrameSet • Cannot use the <body></body> tags together with the <frameset></frameset> tags • popo

  8. FrameSet • <html> • <frameset rows="50%,50%"> • <frame noresize="noresize" src="frame_a.htm"> • <frameset cols="25%,75%"> • <frame noresize="noresize" src="frame_b.htm"> • <frame noresize="noresize" src="frame_c.htm"> • <frame name="aa"> • </frameset> • </frameset> • </html>0 • popo

  9. FrameSet • frame_c.htm • <a href=“load.html” target=aa> onr</a> • popo

  10. FrameSet • The scrolling attribute specifies whether or not to display scrollbars in a <frame>. • By default, scrollbars appear • <frame scrolling="auto|yes|no"> • Auto- Scrollbars appear if needed (this is default) • Yes- Scrollbars are always shown (even if they are not needed) • No-Scrollbars are never shown (even if they are needed) • popo

  11. FrameSet • The frameborderattribute specifies whether or not to display a border around a frame. • <frame frameborder="1|0"> • 1-Border on (this is default) • 0-Border off • popo

  12. FrameSet • The marginheight attribute specifies the height between the content and the top and bottom of the frame, in pixels. • <frame marginheight="pixels"> • popo

  13. FrameSet • The name attribute specifies the name of a <frame> element. • <frame name="text"> • popo

  14. FrameSet • The noresize attribute specifies that a <frame> element cannot be resized by the user. • <frame noresize="noresize"> • By default, each <frame> in a <frameset> can be resized • popo

  15. FrameSet • <html> • <frameset rows="20%,*"> • <frame src="a.html" scrolling="no" frameborder="0" marginheight="50"> • <frameset cols="25%,75%"> • <frame src="b.html"> • <frame src="c.html" name=c> • </frameset> • </frameset> • </html>0 • popo

More Related