HTML <frame> tag

HTML <frame> tag

The <frame> tag defines a particular area in which another HTML document can be displayed.

A frame should be used within a <frameset>.

Warning: The <frame> tag is deprecated and is no longer recommended.

Note: Use <iframe> tag instead of <frame> tag.

Example

HTML Online Editor
<!DOCTYPE html> <html> <frameset cols="50%,50%"> <frame src="/html"> <frame src="/css"> </frameset> </html>

Attributes

AttributeValueExplanation
srcURLSpecifies the URL/Location of the document to be displayed in the frame.
nametextIt is used to labelling frames. Without labeling all links will open in the frame that they are in.
noresize-It avoid resizing of frames by users.
scrolling
  • yes
  • no
When this attribute is not used, browser will put a scroll bar in a frame when necessary by default.
yes - put a scroll bar even when not necessary.
no - don't put a scroll bar even wben necessary.
marginheight
  • numeric value
  • relative value
Specifies how tall the margin between frames will be.
marginwidth
  • numeric value
  • relative value
Specifies how wide the margin between frames will be.
frameborder
  • #RRGGBB
  • color name
It allows you to put borders for frames.

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author