What is Frames in HTML ?
HTML frame are utilized to partition your browser window into numerous areas where every section can stack a different HTML report. A collection of frames in the browser window is known as a frameset. The window is partitioned into frames comparably the tables are composed into lines and columns.
Disadvantages of Frames
There are some disadvantages with utilizing frames, so it’s never prescribed to utilize frame in your website:
- Some smaller devices cannot cope with frames often because their screen is not big enough to be divided up.
- Sometimes your page will be displayed differently on different computers due to different screen resolution.
- The browser’s back button might not work as the user hopes.
- There are still few browsers that do not support frame technology.
How to create frames in HTML ?
You want to use frame in your webpage, then use the frame tag <frameset> before body tag and after head tag. When you insert the frame tag then define the how divide the window in vertical or horizontal. Frame attributes is rows define the values and row is horizontal and cols attribute use to columns and also give some values in frameset tag. Each frame is indicated by <frame> tag and it defines which HTML document shall open into the frame. For example, like this demo
<frame name=”top” src=” http://www.unilearning.net/ ” />
<frame name=”main” src=” http://www.unilearning.net/ ” />
<frame name=”bottom” src=” http://www.unilearning.net/ ” />
Your browser does not support frames.
If frame do not run frame, then execute the body and display the message “your browser does not support frame because some browser is not support the frame. You can replace the attribute with cols then you can see in vertical output.