HTML Framework (Frameset frameset and IFRAME inline framework)

Source: Internet
Author: User

The

HTML framework:
1.frameset Frame Set
2.iframe Inline Frame

1.frameset Frame Set

1.1 Steps to create a frames page:
(1) Create the corresponding HTML file for each child window
(2) Create the entire frame file, referencing the child window file separately

1.2 Basic syntax for creating frame pages:
<frameset cols= "25%,50%,*" row= "50%,*" border= "5" >
<frame src= "top.html" >
......
</frameset>

Note: rows and cols do not appear at the same time, cols represent horizontal partitioning and rows represent vertical partitioning. "*" indicates the remaining.
Note:<frameset></frameset> tags cannot be used in conjunction with <body></body> tags. Unless you use <noframes> tags in <frameset>. That
<frameset>
<noframes>
<body></body>
</noframes>
</frameset>

Common properties in 1.3 <framset> frameset tags

  

For example: Horizontal frame

<frameset rows= "25%,50%,25%" >
<frame src= "header.html"/>
<frame src= "body.html"/>
<frame src= "footer.html"/>
</frameset>

For example: Vertical frame

<frameset cols= "25%,50%,25%" >
<frame src= "header.html"/>
<frame src= "body.html"/>
<frame src= "footer.html"/>
</frameset>

2.iframe Inline Frame

Common Properties

  

Grammar:

<body>
<iframe src= "Reference page address" name= "Frame identifier name" frameborder= "border" scrolling= "yes" ></iframe>
</body>

For example: (Code below)

<!DOCTYPE HTML><HTMLLang= "en">    <Head>        <MetaCharSet= "Utf-8">        <title>Inline frame</title>    </Head>    <Body>    <iframename= "Topiframe"width= "100%"Height= "400px"src= "https://www.baidu.com/"frameborder= "1"scrolling= "Auto"></iframe>    <P>        <ahref= "https://www.baidu.com/"Target= "Topiframe">Baidu&nbsp;&nbsp;&nbsp;&nbsp;</a>        <ahref= "http://www.sina.com.cn"Target= "Topiframe">Sina</a>    </P>    </Body></HTML>

Operation Result:

  

Click Baidu in the box above to display Baidu page, click Sina Display Sina page.

HTML Framework (Frameset frameset and IFRAME inline framework)

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.