0% found this document useful (0 votes)
3 views2 pages

HTML Frames

HTML frames were used to divide web pages into multiple sections, allowing each section to display a separate HTML document, but they have become largely deprecated in modern web development. The disadvantages of frames include compatibility issues with smaller devices, inconsistent display across different resolutions, and problems with browser navigation. Modern web development now favors CSS for layout and iframes for embedding content instead of using frames.

Uploaded by

Stephen Mwai
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

HTML Frames

HTML frames were used to divide web pages into multiple sections, allowing each section to display a separate HTML document, but they have become largely deprecated in modern web development. The disadvantages of frames include compatibility issues with smaller devices, inconsistent display across different resolutions, and problems with browser navigation. Modern web development now favors CSS for layout and iframes for embedding content instead of using frames.

Uploaded by

Stephen Mwai
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HTML FRAMES

- HTML frames are an older web technology that was used to divide a web page into multiple sections, each of
which could display a separate HTML document. Frames were introduced in HTML 4.0 but have become
largely deprecated in modern web development due to various issues and limitations. Instead, web developers
now use more advanced techniques like CSS for layout and iframes or other modern HTML elements for
embedding content from different sources.

- HTML frames are used to divide your browser window into multiple sections where each section can load a
separate HTML document. A collection of frames in the browser window is known as a frameset. The window
is divided into frames in a similar way the tables are organized: into rows and columns.

Disadvantages / Limitations / Drawbacks of HTML Frames

 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.

Creating Frames

- To use frames on a page we use <frameset> tag instead of <body> tag. The <frameset> tag defines, how to
divide the window into frames. The rows attribute of <frameset> tag defines horizontal frames and cols attribute
defines vertical frames. Each frame is indicated by <frame> tag and it defines which HTML document shall
open into the frame.
The <frameset> Tag Attributes

1. Cols

- Specifies how many columns are contained in the frameset and the size of each column.

2. Rows

- This attribute works just like the cols attribute and takes the same values, but it is used to specify the rows in
the frameset. For example, to create two horizontal frames, use rows = "10%, 90%". You can specify the height
of each row in the same way as explained above for columns.

3. Border

- This attribute specifies the width of the border of each frame in pixels. For example, border = "5". A value of
zero means no border.

4. Frameborder

- This attribute specifies whether a three-dimensional border should be displayed between frames. This attribute
takes value either 1 (yes) or 0 (no). For example frameborder = "0" specifies no border.

5. Framespacing

- This attribute specifies the amount of space between frames in a frameset. This can take any integer value. For
example framespacing = "10" means there should be 10 pixels spacing between each frames.

You might also like