Both sides previous revisionPrevious revisionNext revision | Previous revision |
frames [2023/02/15 02:45] – melon | frames [2025/05/05 02:11] (current) – GlitchyZorua |
---|
====== Frames ====== | ====== Frames ====== |
| |
| <WRAP center round important 60%> |
| Frames are deprecated. Support for it will drop at any time. More info here: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/frame |
| </WRAP> |
| |
There are two kinds of frames, [[iframes|iframes]] and frameset, this page is dedicated to frameset: for [[iframes|iframes head over here]]! | There are two kinds of frames, [[iframes|iframes]] and frameset, this page is dedicated to frameset: for [[iframes|iframes head over here]]! |
| |
Notable frameset sites are melonking.net and the [[https://www.spacejam.com/1996/|spacejam website]]! | Notable frameset sites are melonking.net's [[https://melonking.net/melon-classic|classic view]] and the [[https://www.spacejam.com/1996/|spacejam website]]! |
| |
This is a short guide on how to use frameset to make a homepage: | This is a short guide on how to use frameset to make a homepage: |
* To use frameset on a page, you need to use the <frameset> tag instead of the <body> tag. The <frameset> tag tells the browser how to split up the window into frames, using the rows and cols attributes. The rows attribute says how many and how big the horizontal frames are, and the cols attribute says how many and how big the vertical frames are. You can use pixels, percentages, or asterisks to say the size of each frame. | * To use frameset on a page, you need to use the <frameset> tag instead of the <body> tag. The <frameset> tag tells the browser how to split up the window into frames, using the rows and cols attributes. The rows attribute says how many and how big the horizontal frames are, and the cols attribute says how many and how big the vertical frames are. You can use pixels, percentages, or asterisks to say the size of each frame. |
| |
* For example, <frameset rows="100,*" cols="150px,75%"> means that the window will be split into three horizontal frames, with the first one being 100 pixels tall and the second one taking up the rest of the space. The window will also be split into two vertical frames, with the first one being 25% wide, and the second one being 75% wide. | * For example, <frameset rows="10%,*" cols="150,*"> means that the window will be split into three horizontal frames, with the first one being 10% pixels tall and the second one taking up the rest of the space. The window will also be split into two vertical frames, with the first one being 150px wide, and the second one being the rest of the space. |
| |
* Each frame is marked by the <frame> tag, which says which HTML page will show up in the frame. The <frame> tag has a src attribute, which says the URL of the page to show. The <frame> tag can also have a name attribute, which can be used to make links open in a specific frame. | * Each frame is marked by the <frame> tag, which says which HTML page will show up in the frame. The <frame> tag has a src attribute, which says the URL of the page to show. The <frame> tag can also have a name attribute, which can be used to make links open in a specific frame. |
<title>My Homepage</title> | <title>My Homepage</title> |
</head> | </head> |
<frameset rows="100,*" cols="150px,75%"> | <frameset rows="10%,*" cols="150px,*"> |
<frame src="logo.html" name="header"> | <frame src="logo.html" name="header"> |
<frame src="header.html" name="header"> | <frame src="header.html" name="header"> |