Frames In HTML?

frame 1

Thanks to HTML frames, your browser window may be divided into many pieces, each of which can load a different HTML content. A frameset refers to a group of frames that are shown in the browser window. The window is arranged into rows and columns, much like a table. Thus it is separated into frames.

Creating Frames

We use the frameset> tag when we want to employ frames on a page. The frameset> element specifies how the window should be broken into individual frames. The rows and cols attributes of the frameset tag are responsible for defining horizontal and vertical frames. The frame> element, which denotes each frame and specifies which HTML content should open inside the frame, is characterized by frames.

Support for Frames inside Browsers

If a user accesses the site with an outdated browser or a browser that does not support frames, the ‘noframes’ element should be shown to the user in such a case.

For a browser to understand what is contained in a noframes element, if it cannot understand the frameset> element, it must understand what is included in the body> element. A body> element must be placed inside a noframes> element. For those still using older browsers, you can add a notice there.

Frame border

This element of the frameset tag is used to determine whether or not the three-dimensional border should be shown between the frames. For this, use the values 0 and 1; the value 0 specifies that there will be no border, while the value 1 indicates that there will be a border.

Frame spacing

The amount of space that should be present between each frame in a frameset may be specified by using this property of the frameset tag. As a parameter, this may accept any integer value, which effectively represents the value in pixels.

Name is an essential characteristic since it allows you to give the frame a name. It denotes a distinction between one frame and another. In addition, it is used to designate the frame a document needs to be loaded into.


The purpose of this element in the iframe tag is to specify the source file that should be loaded into the frame. Any URL may be used in place of src as its value.

Margin width

In the frame tag, this attribute specifies how wide the spaces between the border and the left and right frames should be in pixels.


A frame tag’s height attribute allows you to specify the height in pixels of the spaces between the top and bottom frame borders and the frame’s content.


Use the scrollbar attribute found in the frame tag to control how the scroll bar appears in the frame. The primary function is to control how the scrollbar appears on the page. Yes, no, or auto can be selected as the value for this attribute. 

Refer to Seahawk Media for more such articles.

Get started with Seahawk

Sign up in our app to view our pricing and get discounts.