Sideway
output.to from Sideway
Draft for Information Only

Content

HTML Frameset (HTML 5 not support)
 Elements of Frameset
 Construction of Frameset
  'Rows' and 'Cols' Attributes
  Nested <frameset> Elements

HTML Frameset (HTML 5 not support)

The HTML <frameset> tag is used to define a frameset in HTML 4.01 and below, and is not supported in HTML5. The possible child element of <frameset> element are <frame>, and <noframes>.elements. Both  <frame> and <noframes> tags are therefore not supported in HTML 5. Besides the <object> element in the <head> element used by the entire <frameset> element is also not supported in HTML 5.

Elements of Frameset

The elements of frameset are <frameset>, <frame>, and <noframes> tag elements.

  • A <frameset> element is a container for containing another <frameset>, <frame>, and optional <noframes> elements.
  • A <frame> element is a container used to specify another HTML document to be displayed in a particular area of the viewport of the UA.
  • The optional  <noframes> element is a container used as alternate element container for supporting browsers which are not able or disabled to support <frame> element.

Construction of Frameset

A <frameset> element is used to divide the whole retangular display area of a window viewport into sub-rectangular display areas. In other words, the dimension of the whole HTML document output is limited and fixed by the window viewport. Each area is also called a frame and is used to display another HTML document specified by a <frame> element. Since a <body> element is used to specified the body of  a HTML document, the <body> element is replaced by the outermost <frameset> element to specify a set of HTML document.

The order of <frameset> and <frame> elements nested in a <frameset> element is always arranged starting with the top-left <frameset> or <frame> element of the window viewport and ended with the bottom-right <frameset> or <frame> element of the window viewport      through from left-to-right and top-to-down

The layout of a frameset can be done by 'rows' and 'cols' attributes, and nested <frameset> elements.

'Rows' and 'Cols' Attributes

The 'rows' and 'cols' attributes are used to specify simple regular HTML document layout. A 'rows' attribute is used to specify the number of horizontal sub-rectangular display areas in the parent <frameset> element in terms of frame counted vertically. A 'cols' attribute is used to specify the number of  vertical sub-rectangular display areas in the parent <frameset> element in terms of frame counted horizontally. If the 'rows' attribute is not set, all frames in the parent <frameset> element will flow through the entire length or height of the parent <frameset> element. If the 'cols' attribute is not set, all frames in the parent <frameset> element will flow through the entire width of the parent <frameset> element. In other words, the default value for 'rows' and 'cols' attributes are equal to 100% of the window viewport of the parent <frameset> element. Therefore when both 'rows' and 'cols' attributes are not set in the <frameset> element, there is only one <frame> element nested in the <frameset> element. For example,
HTML Document Input:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample Page</title>
</head>
<frameset>
<frame src="http://www.sideway.to" />
</frameset>
</html>
HTML Web Page Embedded Output:
When 'cols' attribute is not set in the <frameset> element, there is only row <frame> elements nested in the <frameset> element. For example, a two row frameset.
HTML Document Input:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample Page</title>
</head>
<frameset rows="2*,5*">
<frame src="http://www.sideway.to" />
<frame src="http://www.sideway.hk" />
</frameset>
</html>
HTML Web Page Embedded Output:
When 'rows' attribute is not set in the <frameset> element, there is only column <frame> elements nested in the <frameset> element. For example, a two column frameset.
HTML Document Input:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample Page</title>
</head>
<frameset cols="2*,5*">
<frame src="http://www.sideway.to" />
<frame src="http://www.sideway.hk" />
</frameset>
</html>
HTML Web Page Embedded Output:
When both 'rows' and 'cols' attributes is set in the <frameset> element, the layout of the <frameset> element is an 'cols' row by ''rows' column array of <frame> elements nested in the <frameset> element. For example, a three rows by three columns array frameset with some blank frames.
HTML Document Input:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample Page</title>
</head>
<frameset rows="2*,5*,*" cols="2*,5*,*">
<frame src="http://www.sideway.to/internet/users" />
<frame src="http://www.sideway.to" />
<frame src="http://www.sideway.hk" />
<frame />
<frame src="http://www.sideway.to/collection" />
</frameset>
</html>
HTML Web Page Embedded Output:

Nested <frameset> Elements

The nested <frameset> elements are used to specify irregular compound and complex HTML document layout in form of nested frames in a parent <frameset> element. For example, a compound frameset with one frame in top row, and two frames in bottom row
HTML Document Input:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample Page</title>
</head>
<frameset rows="50%,50%">
   <frame src="http://www.sideway.to/internet/users" />
   <frameset cols="25%,50%">
       <frame src="http://www.sideway.to" />
       <frame src="http://www.sideway.hk" />
   </frameset>
</frameset>
</html>
HTML Web Page Embedded Output:

©sideway

ID: 170800035 Last Updated: 8/27/2017 Revision: 0 Ref:

close

References

  1. Locale ID,  , http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx
close

Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339new

Travel 8new

Reference 79

Computer

Hardware 251

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 431

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Set 1

Logic 1

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019