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 <frameset> Tag

The <frameset> tag in HTML is used to create a grid layout of frames, which can be used to divide the browser window into multiple sections, each containing a separate HTML document. This tag is commonly used to create websites with multiple frames, where each frame can display different content.

Frames were popular in the early days of the web, but they have since fallen out of favor due to usability and accessibility issues. However, for educational purposes, it is still important to understand how the <frameset> tag works.

How to use the <frameset> tag

To use the <frameset> tag, you need to specify the layout of the frames by using the rows or cols attribute. The rows attribute divides the window into rows, while the cols attribute divides the window into columns.

Here is an example of a simple frameset with two columns:


<frameset cols="50%, 50%">
  <frame src="frame1.html">
  <frame src="frame2.html">
</frameset>

In this example, the browser window is divided into two columns, each taking up 50% of the window width. The <frame> tag is used to specify the content that should be displayed in each frame.

Attributes of the <frameset> tag

Attribute Description
rows Specifies the height of each row in the frameset
cols Specifies the width of each column in the frameset
border Specifies whether to display borders around frames
framespacing Specifies the spacing between frames

These are just a few of the attributes that can be used with the <frameset> tag. For a complete list of attributes and their usage, refer to the official W3Schools documentation.

Conclusion

The <frameset> tag in HTML is a powerful tool for creating grid layouts with frames. While frames are no longer widely used in modern web development, understanding how the <frameset> tag works can be valuable for historical and educational purposes.