The big frame of HTML on the Web front
BODY element and frameset element
For people working with HTML, we are generally familiar with the framework is to declare the HTML, and then in the
For example:
<! DOCTYPE html>
<title></title>
<meta charset= "Utf-8" >
<body>
<p> can be displayed in the page </p>
</body>
But there is another big frame, that is, the <frameset> tag pair, it is used to organize multiple windows (frames), not commonly used, estimated also few people know, not much to say on the code demo:
<! DOCTYPE html>
<title></title>
<frameset cols= "25%,50%,25%" >
<frame style= "Background-color:yellow" >
<frame style= "Background-color:green" >
<frame style= "Background-color:lightbl" >
</frameset>
in its simplest application, the,<frameset> tag pair only specifies how many columns or rows exist in the frameset and must use the cols or rows property. The cols in the code represents the columns, expressed in relative widths, the first column is 25% of the overall width, the second column is 50% of the overall width, and the third column is 25% of the overall width, with a different background color, which looks clearer. Similarly, it can be divided into rows to divide the overall height. If the row or column does not fully occupy the width or height of the whole, add a * at the end to divide the remaining width or height. <frameset> each frame has a separate document that can be tuned with the SRC attribute, such as <frame src= "a.html" > a.html file is called in a frame. It is important to note that:<body></body> tags cannot be used with <frameset></frameset> tags, they belong to different framework architectures. However, if you need to add a <noframes> tag to a browser that does not support frames, be sure to place this tag in the <body></body> tab!Large frame of HTML for the Web front end (body element and frameset Element)