XHTML Frame Structure Label

Source: Internet
Author: User

Frame Structure label <frameset></frameset>

The framework allows you to open two or more pages in a browser window. You can understand that,<frameset> is actually a big <table>, but the whole page is the main body of <table>, and each cell's content is a separate page.

Columns to frame structure ("cols" and "Rows" properties)

Since we say that a frame structure can be understood as a table with a page as a cell, then it must be a column. Where the Cols property divides the page into columns, and the Rows property divides the page into rows. Let's look at an example.

<frameset rows= "25%,75%" >
<frame src= "1.html"/>
<frame src= "3.html"/>
</frameset>

where "rows=" 25%,75% indicates that the page is divided into two rows because it has two property values, and their size is 25% and 75% of the page height respectively. Click here to see how the above code works. Frame Labels <frame>

The above example already uses the <frame> tag, and its SRC attribute is what will be displayed in this frame. The two frames in this example can be resized by dragging and dropping, and if you want them to be fixed-size, you can use the noresize= "noresize" property.

Note that the:<frame> tag is an empty label and you need to add a "/" to conform to XHTML requirements.

About <noframe> Labels

The label only works if the browser does not support the frame structure, and since almost all Web browsers now support the frame structure, we are not going to introduce this tag here. If you want to know something about it, you can check the HTML manuals on the Web.

Framework structure and DTD

The DTD for the frames page differs from the General Web page. The Declaration method is as follows:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 frameset//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" >

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.