HTML frame tag

<frame> tag in HTML

The <frame> tag is used to separate a screen into many frames.

Currently this is not supported by HTML5 and instead <iframe> tag is being used.

The <frame> tag can be used with <frameset> tag.

attributes in <frame> tag

  • src
  • noresize
  • scrolling
  • marginheight
  • marginwidth
  • frameborder

src attribute in <frame> tag

src attribute is used to give the path of the existing html file.


Try Yourself

noresize attribute in <frame> tag

noresize attribute is used to prevent the resizing of frame.

In the following example, you can resize only the center window.


Try Yourself

frameborder attribute in <frame> tag

frameborder attribute is used to customize border style.


Try Yourself