HTML frameset Tag - HTML Tutorial

HTML frameset Tag

BLUF: Mastering HTML frameset Tag is a fundamental step in becoming a web developer. This guide covers the structure, syntax, and best practices for using this HTML element effectively.
Key Lesson: HTML frameset Tag

Web structure starts with solid HTML. Learn how HTML frameset Tag contributes to accessible and semantic web pages in the tutorial below.

HTML <frameset> element is employed to enclose a collection of frames that can be managed and customized collectively. The <frameset> tag additionally defines the quantity of rows and columns within the frameset, along with the dimensions allocated to each frame.

Note: Do not use HTML <frameset> element as it is deprecated and not supported by HTML5, but you can use <iframe> tag instead.

Syntax

Example

<frameset cols=" ">............</frameset>

Following are some details regarding the HTML <frameset> element:

Display Block
Start tag/End tag Both Start and End Tag
Usage Frames

Example 1

Example

<!DOCTYPE html>

<html>

<head>

	<title>Frame tag</title>

</head>

  <frameset cols="50%,50%">

  	<frame  src="https://placehold.co/400x300/1abc9c/ffffff?text=Sample+Image">

  	<frame  src="https://placehold.co/400x300/1abc9c/ffffff?text=Sample+Image">	

   </frameset>

</html>

Output:

Attribute

Tag-specific attribute

Attribute Value Description
cols Pixels%* It specifies the number and size of column spaces in the frameset. (Not Supported in HTML5)
rows Pixels%* It specifies the number and size of the rows spaces in the frameset. (Not Supported in HTML5)

Supporting Browsers

Element Chrome IE Firefox Opera Safari
<frameset> Yes Yes Yes Yes Yes

Input Required

This code uses input(). Please provide values below:

Logic Practice
Install Logic Practice
Add to home screen for a faster app-like experience