HTML <frame> tag

Updated: 10/11/2017 by Computer Hope

HTML frame tagWhen writing in HTML, the <frame> tag was a block element used to designate a specific window within a <frameset> element. It was useful in some instances because it allowed each window to have its own set of attributes and could contain an entire document. The following sections contain information about the <frame> tag, including an example of its code, as well as related attributes and browser compatibility.

Note: The <frame> element will not be supported going forward. We recommend using either the <iframe> or <div> tag along with CSS to achieve a similar effect.

Example code

<frameset cols="25%,25%,50%">
<frame src="frame1.htm">
<frame src="frame2.htm">
<frame src="frame3c.htm">

Old Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The <frame> tag is deprecated, but at one time it utilized the unique attributes contained in the following table.

Attribute Description
frameborder Toggles frame borders on and off
longdesc Designates that the frame's content has a long description
marginheight Designates both bottom and top margin sizes
marginwidth Designates both right and left margin sizes
name Designates a name for the frame
scrolling Toggles scrollbars for the frame on and off
src Designates the URL of a document to be shown in the frame


Internet Explorer Firefox Safari Opera Chrome
All versions * All versions * All version * All versions * All versions *

*Until it is removed in a future version of HTML

Browser, Code, Compatibility, Scroll bar, URL, Web design terms, Window