HTML Frames

HTML Frames

Published by: Anil K. Panta

HTML Frames

We can use frames to display more than one web page in the same browser window. Each HTML document is called a frame, and each frame is independent of the others. The disadvantages of using frames are: 

  • The web developer must keep track of more HTML documents  

  • It is difficult to print the entire page

We use <frameset> tag to define how to divide the window into frames. Each frameset defines a set of rows or columns. Within frameset, we use <frame> tag to define what HTML document to put into each frame. 

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. Add the <noframes> tag for browsers that do not support frames. 

Important: You cannot use the <body></body> tags together with the <frameset></frameset> tags. However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in <body></body> tags. 


Example 1:


Example 2:


Example 3:

We will get back to you via email or phone call