HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
  • Insights
  • Verify Certificate
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials
HTML5ANDCSS3 logoHTML5ANDCSS3Tools and Tutorials

HTML5andCSS3.org helps developers learn modern frontend skills with practical tutorials, production-ready snippets, and fast web tools built for everyday coding.

Quick Links

  • About Us
  • Contact Us
  • Privacy Policy
  • Copyright
  • Disclaimer

Top Tools

  • Try It Editor
  • JSON Formatter
  • CSS Minifier
  • HTML Minifier
  • Base64 Encoder / Decoder

Contact

  • business@html5andcss3.org
Newsletter

Learn at your own pace, practice with useful tools, and build websites you're proud of.

© 2011-2026 html5andcss3.org. All rights reserved.

How to Use

HTML Tags

HTML Tags

HTML <!DOCTYPE> TagHTML <html> TagHTML <head> TagHTML <title> TagHTML <body> TagHTML <base> TagHTML <link> TagHTML <meta> TagHTML <style> TagHTML <script> TagHTML <h1 to h6> TagHTML <hgroup> TagHTML <p> TagHTML <br> TagHTML <wbr> TagHTML <hr> TagHTML <pre> TagHTML <b> TagHTML <strong> TagHTML <i> TagHTML <em> TagHTML <mark> TagHTML <small> TagHTML <del> TagHTML <ins> TagHTML <sub> TagHTML <sup> TagHTML <u> TagHTML <blockquote> TagHTML <q> TagHTML <cite> TagHTML <abbr> TagHTML <address> TagHTML <bdo> TagHTML <bdi> TagHTML <a> TagHTML <nav> TagHTML <ul> TagsHTML <menu> TagHTML <ol> TagHTML <dl> TagHTML <img> TagHTML <figure> TagHTML <figcaption> TagHTML <audio> TagHTML <video> TagHTML <source> TagHTML <track> TagHTML <embed> TagHTML <object> TagHTML <param> Tag (Obsolete)HTML <picture> TagHTML <canvas> TagHTML <map> TagHTML <area> TagHTML <table> TagHTML <caption> TagHTML <thead> TagHTML <tbody> TagHTML <tfoot> TagHTML <tr> TagHTML <th> TagHTML <td> TagHTML <col> TagHTML <colgroup> TagHTML <form> TagHTML <input> TagHTML <textarea> TagHTML <button> TagHTML <select> TagHTML <selectedcontent> TagHTML <option> TagHTML <optgroup> TagHTML <label> TagHTML <fieldset> TagHTML <legend> TagHTML <datalist> TagHTML <output> TagHTML <meter> TagHTML <progress> TagHTML <header> TagHTML <footer> TagHTML <article> TagHTML <section> TagHTML <aside> TagHTML <main> TagHTML <search> TagHTML <details> TagHTML <summary> TagHTML <dialog> TagHTML <time> TagHTML <noscript> TagHTML <slot> TagsHTML <template> TagHTML <shadow> Tag (Obsolete)HTML <center> TagHTML <font> TagHTML <big> TagHTML <strike> TagHTML <tt> TagHTML <acronym> TagHTML <applet> TagHTML <frame> TagHTML <frameset> TagHTML <noframes> TagHTML <marquee> TagHTML <blink> TagHTML <s> TagHTML <var> TagHTML <kbd> TagHTML <samp> TagHTML <code> TagHTML <dfn> TagHTML <div> TagHTML <span> TagHTML Comment TagHTML <data> TagHTML Ruby Annotations: <ruby>, <rt> and <rp>HTML <svg> TagHTML <basefont> Tag
  1. Home
  2. /
  3. Tutorials
  4. /
  5. HTML Tutorial
  6. /
  7. HTML <frameset> Tag

HTML Tags

HTML <frameset> Tag

The <frameset> tag in HTML was used to define a set of frames within the browser window. It allowed you to divide the window into multiple sections (frames), each displaying a separate HTML document.

Syntax

html

<frameset rows="value" cols="value">
  <frame src="URL1">
  <frame src="URL2">
</frameset>

Attributes

AttributeDescription
rowsSpecifies the number and size of horizontal frames (comma-separated values).
colsSpecifies the number and size of vertical frames (comma-separated values).
borderDefines the width of the border between frames.
frameborderSpecifies whether a border should be displayed between frames (1 or 0).
framespacingDefines the space between frames (non-standard, used in older browsers).
onloadEvent handler triggered when the frameset has finished loading.
onunloadEvent handler triggered when the frameset is unloaded.

Example

html

<!DOCTYPE html>
<html>
  <head>
    <title>HTML Frameset Example</title>
  </head>
  <frameset cols="50%,50%">
    <frame src="https://wikipedia.com" name="leftFrame">
    <frame src="https://hindigems.com" name="rightFrame">
  </frameset>
</html>

Output

Browser Output

html

This example divides the browser window into two vertical frames:
  • The left frame loads frame1.html.
  • The right frame loads frame2.html.

(Note: In modern browsers, this will not work, as <frameset> and <frame> are deprecated.)

Browser Support

Chrome
Edge
Firefox
Safari
Opera
IE9+
YesYesYesYesYesYes

The <frameset> tag is partially supported by few browser's older version but most of the browser dosn't support this tag.

Notes

  • The <frameset> tag replaced the <body> tag in documents that used frames.
  • Each frame could display a different webpage.
  • Frames often caused usability and bookmarking problems.
  • In HTML5, use <iframe> or modern CSS for layout and embedding.

Conclusion

The <frameset> tag was once a useful feature for creating multi-document layouts, but it is deprecated and obsolete in modern web development. Developers should now use CSS layout techniques or iframes for embedding content instead of using framesets.

PreviousHTML <frame> TagNextHTML <noframes> Tag