What Is Frame Tag in HTML with Example - SEO Guide

The tag in HTML is an obsolete tag that was used to createframes forInline frames. It would divide a webpage into multiple parts, each with its own scrollbar. However, due to usability issues and accessibility concerns, it is not longer supported in modern web browsers. Let's explore what it was, its usage, and why it's deprecated.

Commonly Used HTML Tags with Examples - DataFlair
Commonly Used HTML Tags with Examples - DataFlair

Imagine as ancient border fences that enclosed different portions of a vast webpage. Each held a unique document, and users could navigate among them as if they were distinct webpages. But in reality, they were all part of one grand webpage.

HTML TAG
HTML TAG

Understanding Tag

The tag had a set of attributes like src to specify the document to be displayed, noresize to disable resizing, and longdesc to provide a long description of the frame. Here's a simple example of how it was used:

Title: HTML Semantic vs Non-Semantic Tags – Guide by RajNandani
Title: HTML Semantic vs Non-Semantic Tags – Guide by RajNandani

<frameset cols="250,*"> <frame src="leftframe.html" name="left_frame" noresize/_> <frame src="mainframe.html" name="main_frame" scrolling="auto"_> </frameset>

Frameset Attribute

the list of html tags for different types of webpages and pages, with text overlaiding them
the list of html tags for different types of webpages and pages, with text overlaiding them

The tag was used in conjunction with to specify the layout of frames. It had attributes like cols and rows to define the layout. In the above example, cols="250,*" means that the frame 'leftframe.html' takes 250 pixels on the left, and the rest of the space goes to 'mainframe.html'.

Rows and cols attributes could also be used to create a grid layout with multiple frames.

Target Attribute

π™ƒπ™π™ˆπ™‡ π™π™–π™œπ™¨ π™˜π™π™šπ™–π™© π™¨π™π™šπ™šπ™©
π™ƒπ™π™ˆπ™‡ π™π™–π™œπ™¨ π™˜π™π™šπ™–π™© π™¨π™π™šπ™šπ™©

The target attribute was used to specify where to open a link. In the context of frames, it was used to open a new link in a specific frame rather than the entire window. For example, Open in Left Frame.

This was useful for creating customized navigations within frames.

Why is Deprecated?

HTML Formatting β€” Text Formatting Tags β€” TutorialBrain
HTML Formatting β€” Text Formatting Tags β€” TutorialBrain

While offered some level of content organization, it had substantial disadvantages. Each frame was loaded and scrolled independently, leading to a poor user experience. The absence of a combined scrollbar meant users had to switch focus from one frame to another to scroll through the content. This was not only inconvenient but also confusing for users.

Moreover, it posed significant accessibility challenges. Screen readers had difficulty navigating through frames, making it hard for visually impaired users to access content. In addition, search engine crawlers had difficulty indexing content within frames.

About HTML tags
About HTML tags
HTML Heading Tag Example
HTML Heading Tag Example
Types of tags in HTML
Types of tags in HTML
HTML tags are arranged in the following manner
HTML tags are arranged in the following manner
HTML5 Tags &HTML5 Attributes
HTML5 Tags &HTML5 Attributes
Embedding Images in HTML using <img>
Embedding Images in HTML using <img>
HTML Full Form + 10 Essential Tags Every Beginner Must Know πŸš€
HTML Full Form + 10 Essential Tags Every Beginner Must Know πŸš€
HTML TAGS | PART 1
HTML TAGS | PART 1
πŸ“Usefull HTML Form's Tags, Attributes, and ValuesπŸ“‹
πŸ“Usefull HTML Form's Tags, Attributes, and ValuesπŸ“‹
HTML Tags β€” List of all HTML Tags with Examples TutorialBrain
HTML Tags β€” List of all HTML Tags with Examples TutorialBrain
an info sheet with the words, tags and key points on it's page
an info sheet with the words, tags and key points on it's page
Saidul (@saidul_dev) on X
Saidul (@saidul_dev) on X
Harnessing the Power of the <img> Tag in HTML
Harnessing the Power of the <img> Tag in HTML
a close look at tags info sheet
a close look at tags info sheet
HTML uses tags to control the structure of a web page
HTML uses tags to control the structure of a web page
Essential HTML Tags Every Web Developer Needs! 🏷️
Essential HTML Tags Every Web Developer Needs! 🏷️
List of HTML Tags
List of HTML Tags
HTML Page Structure Tag Explanation
HTML Page Structure Tag Explanation
two different types of web pages with the same text and numbers in each one language
two different types of web pages with the same text and numbers in each one language
HTML video tag
HTML video tag

Outdated Browser Support

Modern web browsers have steadily phased out support for to improve user experience and accessibility. Today, most browsers don't display frames, instead transforming old-fashioned frame sets into individual tabs in the browser window.

As a result, it's recommended to avoid using tags in web design and development. Instead, CSS and modern HTML5 features can be used to create more user-friendly and responsive web layouts.

In the ever-evolving world of web design, it's essential to stay updated with the best practices, keep pace with the latest web standards, and understanding the deprecated ones like helps avoid common pitfalls. Keep your designs responsive, accessible, and clutter-free for the best user experience.

Related Articles

What Is Computer Network Tutorialspoint What Is The Form Tag Used For In Html What Is Cloud Computing Tutorialspoint What Is Form Action In Html Html Form Tutorial Pdf Html Form Input Examples How To Use Frames In Html Explain With Example Explain Form Tag In Html With Registration Page As Example What Is Tutorial Used For How To Use Visual Studio For Html