-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
59 lines (42 loc) · 1.6 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
title: <frameset>
slug: Web/HTML/Element/frameset
page-type: html-element
status:
- deprecated
browser-compat: html.elements.frameset
---
{{HTMLSidebar}}{{Deprecated_header}}
The **`<frameset>`** [HTML](/en-US/docs/Web/HTML) element is used to contain {{HTMLElement("frame")}} elements.
> **Note:** Because the use of frames is now discouraged in favor of using {{HTMLElement("iframe")}}, this element is not typically used by modern websites.
## Attributes
Like all other HTML elements, this element supports the [global attributes](/en-US/docs/Web/HTML/Global_attributes).
- `cols` {{Deprecated_Inline}}
- : This attribute specifies the number and size of horizontal spaces in a frameset.
- `rows` {{Deprecated_Inline}}
- : This attribute specifies the number and size of vertical spaces in a frameset.
## Example
### A frameset document
A frameset document has a `<frameset>` element instead of a {{HTMLElement("body")}} element. The {{HTMLElement("frame")}} elements are placed within the `<frameset>`.
```html
<!doctype html>
<html lang="en-US">
<head>
<!-- Document metadata goes here -->
</head>
<frameset cols="50%, 50%">
<frame
src="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe" />
<frame
src="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/frame" />
</frameset>
</html>
```
If you want to embed another HTML page into the {{HTMLElement("body")}} of a document, use an {{HTMLElement("iframe")}} element.
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- {{HTMLElement("frame")}}
- {{HTMLElement("iframe")}}