Web Front-end big HTML framework (body and frameset elements), bodyframeset
Web Front-end HTML framework
Body and frameset Elements
For html personnel, the framework we are familiar with is to declare html first, and then include the
For example:
<! DOCTYPE html>
<Html>
<Head>
<Title> </title>
<Meta charset = "UTF-8">
</Head>
<Body>
<P>Displayed on the page</P>
</Body>
</Html>
However, there is another big framework, namely the <frameset> tag pair, which is used to organize multiple windows (frames). It is not commonly used and is rarely known, not to mention the code Demonstration:
<! DOCTYPE html>
<Html>
<Head>
<Title> </title>
</Head>
<Frameset cols = "25%, 50%, 25%">
<Frame style = "background-color: yellow">
<Frame style = "background-color: green">
<Frame style = "background-color: lightbl">
</Frameset>
</Html>
In its simplest application, the <frameset> label pair only specifies the number of columns or rows in the framework set. The cols or rows attribute must be used. In the code, cols indicates the column to be divided, expressed by relative width. The first column occupies 25% of the overall width, and the second column occupies 50% of the overall width, the third column is 25% of the overall width, and different background colors are added, which makes it clearer. Similarly, it can be divided into several rows of rows to divide the overall height. If the divided rows or columns cannot fully occupy the overall width or height, add * at the end to divide the remaining width or height. <Frameset> each framework has an independent document and can be retrieved using the src attribute. For example, <frame src = "a.html"> the.html file is retrieved in a framework.
Note that:The <body> </body> label cannot be used with the <frameset> </frameset> label. They belong to different framework architectures. However, if you want to add a <noframes> label to a browser that does not support the framework, place the label in the <body> </body> label!