html How to use frameset tag? Detailed explanation of the attributes of the html frameset tag. This article mainly describes the definition and usage of the html frameset tag, as well as the uses of the two attributes of the html frameset tag (with examples)
First of all, let us understand what html frameset is. Tag:
html Definition and usage of frameset tag:
frameset element can define a frameset. It is used to organize multiple windows (frames). Each framework has separate documentation. In its simplest application, the frameset element simply specifies how many columns or rows exist in the frameset. You must use cols or rows attributes.
html The role of the frameset tag:
Its role is to specify a frameset for organizing multiple frames and nested framesets.
The FRAMESET element is a container for FRAME elements. An HTML document can contain either a FRAMESET element or a BODY element, but not both.
If a user opens a Web folder in a frame and then clicks something in the Web folder, the clicked file or folder will replace the entire window. For example, suppose a page contains two frames, one pointing to a URL and the second pointing to a network drive. If the user clicks on a file or folder in the second frame, that frame activates the entire window's controls, including the first frame. For file types that the browser cannot handle, such as *.txt files, the corresponding application window will be opened.
Although Web folders are part of the file system hierarchy, this technology does not always represent the actual contents of the file system. A typical example is Network Neighborhood.
html The scope of use of the frameset tag:
This element is available in HTML in Microsoft® Internet Explorer 3.0 and in scripts in Internet Explorer 4.0.
Note: The
tag cannot be used together with thetag. However, if you need to add aHTML
Simple three-frame page:
<html> <frameset cols="25%,50%,25%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> <frame src="frame_c.htm" /> </frameset> </html>
html Tips and comments for the frameset tag:
Tip: It is important to note that browsers allow users to manually resize the rows or columns of a single frame document, and thus change the relative proportion of each frame in the frame display. Unless you explicitly tell the browser not to do this. To prevent this, you can use the noresize attribute in the tag.
Note: If you wish to validate a page that contains frames, make sure the DTD is set to "Frameset DTD". Read more about XHTML validation.
Important: You cannot use the
tag with the tag. However, if you need to add ahtml Optional attributes of the frameset tag:
html Standard attributes of the frameset tag:
id, class, title, style
Cols attribute and rows attribute of HTML
html Function and usage of frameset tag:# The
##The above is the detailed content of How to use html frameset tag? Detailed explanation of html frameset tag attributes. For more information, please follow other related articles on the PHP Chinese website!