/Frameset

Frameset Website

Primary LanguageHTMLBoost Software License 1.0BSL-1.0

Got it. Here's the complete content for a README file in Markdown format, which you can copy and paste:

HTML Frameset and Target Attribute

Overview

This README provides an explanation of the <frameset> element in HTML and the target attribute, particularly in the context of creating a menu that redirects to a middle frame. Additionally, it includes a link to my GitHub profile.

HTML Frameset

The <frameset> element in HTML is used to divide the browser window into multiple sections, each capable of displaying a separate document. Framesets were commonly used to create web page layouts before the introduction of modern CSS layouts.

Example

<!DOCTYPE html>
<html>
<head>
    <title>Frameset Example</title>
</head>
<body>
    <frameset cols="25%,*,25%">
        <frame src="menu.html" name="menu">
        <frame src="content.html" name="content">
        <frame src="sidebar.html" name="sidebar">
    </frameset>
</body>
</html>

In this example:

  • The window is divided into three columns: a left column (menu), a middle column (content), and a right column (sidebar).
  • The cols attribute specifies the width of each column.

Target Attribute

The target attribute specifies where to open the linked document. In the context of frames, this is used to control which frame the content will be loaded into when a link is clicked.

Example

Assume you have a menu.html file with links:

<!DOCTYPE html>
<html>
<head>
    <title>Menu</title>
</head>
<body>
    <ul>
        <li><a href="page1.html" target="content">Page 1</a></li>
        <li><a href="page2.html" target="content">Page 2</a></li>
    </ul>
</body>
</html>

In this example:

  • The target="content" attribute in the anchor tags (<a>) specifies that the linked documents should be opened in the frame named content.
  • When you click on "Page 1" or "Page 2", the content will be loaded in the middle frame.

GitHub Profile

You can find my GitHub profile here.