You can specify the height of each row in the same way as explained above for columns. For example, to create two horizontal frames, use rows = "10%, 90%". This attribute works just like the cols attribute and takes the same values, but it is used to specify the rows in the frameset. Here the window is divided into sixths: the first column takes up half of the window, the second takes one third, and the third takes one sixth. You can use relative widths of the browser window. For example, to create three vertical frames, use cols = "3*, 2*, 1*". In this case wildcard takes remainder of the window.Īs relative widths of the browser window. For example, to create three vertical frames, use cols = "10%, *, 10%". For example, to create three vertical frames, use cols = "10%, 80%, 10%". For example, to create three vertical frames, use cols = "100, 500, 100".Ī percentage of the browser window. You can specify the width of each column in one of the four ways −Ībsolute values in pixels. Specifies how many columns are contained in the frameset and the size of each column. This will produce the following result − The Tag Attributesįollowing are important attributes of the tag − Sr.No Exampleįollowing is the example to create three horizontal frames − Each frame is indicated by tag and it defines which HTML document shall open into the frame. The rows attribute of tag defines horizontal frames and cols attribute defines vertical frames. The tag defines, how to divide the window into frames. To use frames on a page we use tag instead of tag. There are still few browsers that do not support frame technology. The browser's back button might not work as the user hopes. Sometimes your page will be displayed differently on different computers due to different screen resolution. Some smaller devices cannot cope with frames often because their screen is not big enough to be divided up. There are few drawbacks with using frames, so it's never recommended to use frames in your webpages − The window is divided into frames in a similar way the tables are organized: into rows and columns. A collection of frames in the browser window is known as a frameset. HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document.
0 Comments
Leave a Reply. |