Web Front-end big HTML framework (body and frameset elements), bodyframeset

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.