Large frame of HTML for the Web front end (body element and frameset Element)

Source: Internet
Author: User

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)

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.