Home > Web Front-end > HTML Tutorial > How to make html frameset

How to make html frameset

下次还敢
Release: 2024-04-22 10:42:16
Original
711 people have browsed it

HTML frameset is a nested collection of documents displayed in their own areas (called frames). Making a frameset requires the following steps: Create an HTML document and declare the frameset. Define a frame nested within a frameset and give it a name and URL. Set frame properties such as size and resize limits. Nest framesets to create complex layouts and specify row or column sizes.

How to make html frameset

HTML Frameset Creation Guide

What is HTML Frameset?

HTML frameset is a set of documents nested within a parent frame (also called a frameset frame), with each document displayed in its own area (called a frame).

How to create an HTML frameset?

Making an HTML frameset requires the following steps:

  1. Create an HTML document and declare the frameset:
<code class="html"><html>
<head>
<title>我的框架集</title>
</head>
<frameset>...</frameset>
</html></code>
Copy after login
  1. Define the frameset frame:
<code class="html"><frame src="nav.html" name="nav">
<frame src="main.html" name="main"></code>
Copy after login

This code creates two frames: a navigation bar frame named "nav" and a main frame named "main" Content frame.

  1. Specify attributes for the frame:
<code class="html"><frame src="nav.html" name="nav" noresize></code>
Copy after login

The "noresize" attribute prevents the navigation bar frame from being resized.

  1. Nested framesets:
<code class="html"><frameset cols="50%,50%">
<frame src="nav1.html">
<frameset rows="50%,50%">
<frame src="main1.html">
<frame src="main2.html">
</frameset>
</frameset></code>
Copy after login

This code creates a nested frameset with two main frames (main1 and main2 ), whose dimensions are 50/50%, and nested within another frameset (cols is 50/50%) that contains a navigation frame.

  1. Specify the row and column sizes:
<code class="html"><frameset rows="100,*,100">
<frame src="header.html">
<frame src="main.html">
<frame src="footer.html"></code>
Copy after login

This code creates a frameset with three frames: a 100 pixel tall header frame, a main content frame that takes up the remaining available space, and a 100-pixel-tall footer frame.

The above is the detailed content of How to make html frameset. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template