This is especially important when you want to create links in one frame that load pages into an another frame, in which case the second frame needs a name to identify itself as the target of the link. It is used to indicate which frame a document should be loaded into. This attribute allows you to give a name to a frame. For example, src = "/html/top_frame.htm" will load an HTML file available in html directory. This attribute is used to give the file name that should be loaded in the frame. For example framespacing = "10" means there should be 10 pixels spacing between each frames.įollowing are the important attributes of tag − Sr.No This attribute specifies the amount of space between frames in a frameset. For example frameborder = "0" specifies no border. This attribute takes value either 1 (yes) or 0 (no). This attribute specifies whether a three-dimensional border should be displayed between frames. This attribute specifies the width of the border of each frame in pixels. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |