HTML Basics

HTML Introduction HTML Basic HTML Comments HTML Tags/Elements HTML Attributes HTML Formatting HTML Block and Inline HTML Charsets HTML Classes HTML Colors HTML Div HTML Headings HTML Id HTML Iframes HTML Images HTML File Paths HTML Tables HTML Layout HTML Lists HTML Links <a> HTML Paragraphs HTML Quotations HTML JavaScript HTML Emojis HTML URL Encode HTML Entities HTML Computercode HTML Symbols HTML Styles

HTML Forms

HTML Forms HTML Form Elements HTML Form Attributes HTML Input Attributes HTML Input Regex HTML Input Form Attributes HTML Input Types

HTML SEO

HTML Head HTML Page Title HTML Responsive HTML Semantics HTML Favicon

HTML Graphics

HTML Canvas HTML SVG

HTML Media

HTML Media HTML Audio HTML Video

HTML Reference

a abbr acronym address applet area article aside audio b base basefont bdi bdo big blockquote body br button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl DOCTYPE dt em embed fieldset figcaption figure font footer form frame frameset h1_-_h6 head header hgroup hr html i iframe img input ins kbd label legend li link main map mark menu meta meter nav noframes noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr

HTML <frame> Tag

The <frame> tag in HTML is used to define a particular area in which another HTML document can be displayed. This tag is commonly used within framesets to divide a webpage into multiple frames, each displaying a separate HTML document.

How <frame> Works:

When the <frame> tag is used within a <frameset> element, it specifies the location and size of the frame within the frameset. The <frame> tag can also be used on its own, but it is mostly used in conjunction with other frames to create a multi-frame layout.

Main Attributes of <frame> Tag:

Attribute Description
src Specifies the URL of the document to be displayed in the frame.
name Defines a unique name for the frame that can be used as a target for links.
border Specifies the width of the border around the frame.
noresize Prevents the user from resizing the frame.
scrolling Controls whether scrollbars are displayed in the frame.

Examples:

Here is an example code snippet showing how the <frame> tag can be used within a frameset:


<frameset cols="25%,75%">
  <frame src="menu.html" name="menu" noresize>
  <frame src="content.html" name="content">
</frameset>

In this example, the webpage is divided into two frames - one displaying the menu.html document and the other displaying the content.html document.

When specifying the attributes of the <frame> tag, make sure to include the necessary attributes such as src, name, and any other attributes required for your specific layout.