Frame tag, PHP Web Programming

Assignment Help:

As you can supposition, this tag is utilized for placing an HTML file in the frame created. We have to now tell the browser what to put in each of frame.

Check out the code for all the FRAM ES associated examples. Do we need a <BODY> tag?

<HTML>

<HEAD>

<TITLE>My Frame Page- Master Page</TITLE>

</HEAD>

<FRAMESET COLS="50%,50%">

<FRAME SRC="One.htm">

<FRAME SRC="Two.htm">

</FRAMESET>

</HTML>

You also have to note here that <FRAMESET> is a container tag, and <FRAME> is not. A container tag contain an opening <TAG> and a closing </TAG>.  Thus notice that the <FRAME> tag has no delimiter to terminate it.  Everything is in its attributes.

The <FRAMESET> tag does all the splitting of the page into distinct windows. It also has attributes which indicate how to divide them up. Can we split the page into more than two pieces? Yes, just ensure that you indicate a page to occupy each of the section or the browser will get confused. Look at the code & the output in Figure

<HTML>

<HEAD>

<TITLE>My Frame Page- The Master Page</TITLE>

</HEAD>

<FRAMESET COLS="20%, 20%,20%,20%,20%">

<FRAME SRC="One.htm">

<FRAME SRC="Two.htm">

<FRAME SRC="Three.htm">

<FRAME SRC="Four.htm">

<FRAME SRC="Five.htm">

</FRAMESET>

</HTML>

817_Frame Tag.png

Figure: A Web Page with Five Frames

It is just a small step to making the frames all of distinct sizes. Just ensure your arithmetic is correct and that the percentages you indicate add up to 100 or the browser will come up along with its own interpretation.

If we spilt the page into ROWS rather than COLS we get a distinct layout.

<HTML>

<HEAD>

<TITLE>My Frame Page- Master Page</TITLE>

</HEAD>

<FRAMESET ROWS="10%,20%,30%,15%,25%">

<FRAME SRC="One.htm">

<FRAME SRC="Two.htm">

<FRAME SRC="Three.htm">

<FRAME SRC="Four.htm">

<FRAME SRC="Five.htm">

</FRAMESET>

</HTML>

Now Let us take another example with only 2 frames. We can specify 50 to indicate that number of pixels instead of 50 percent. We can also use * instead of a number. The * means whatever is left over.      

<HTML>

<HEAD>

<TITLE>My Frame Page- The Master Page</TITLE>

</HEAD>

<FRAMESET COLS="50,*">

<FRAME SRC="One.htm">

<FRAME SRC="Two.htm">

</FRAMESET>

</HTML>


Related Discussions:- Frame tag

Brute Force, How to search the keyword in dictionary and suggest words when...

How to search the keyword in dictionary and suggest words when there is partial match of 3 characters during user input?

Presentation layer - osi model layer, Presentation layer: While two hosts ...

Presentation layer: While two hosts are communicating with each other they might employ distinct coding standards & character sets for internally representing data. This layer is

Software development, Software development Project Description: We wa...

Software development Project Description: We want experienced programmer to write a software for us. Software nature - Chat software - VoIP technology- social networking

Need help to merge a plugin with a wordpress theme, Merge a plugin with a W...

Merge a plugin with a Wordpress theme I need to make plugins to work on theme as well I want to be able to use some of the extra plugins on the premium press theme. Desired S

Magento ecommerce convertion to order and pay later for site, Magento ecomm...

Magento ecommerce convertion to order and pay later for website I have a magento multistore set up with a total of ten websites. All ten websites are configured now as ecommerce

We are in need of a front end web developer, We are in need of a Front End ...

We are in need of a Front End Web Developer We are seeking to hire a front end web developer who can work with us to develop our web portal using our API. We have an appropriate

We are looking for expert coldfusion programmer, We are looking for Expert ...

We are looking for Expert ColdFusion Programmer - must be in Northern VA/DC area We are in want of an expert ColdFusion developer who can help us with a project that involves ec

Title tag, The only thing you need to concern yourselves with in the HEAD t...

The only thing you need to concern yourselves with in the HEAD tag (for now) is the TITLE tag. The bulk of the page will be in the BODY tag, as illustrated in Figure.

We need help in the development of a peer lending website, Bitcoin Peer Len...

Bitcoin Peer Lending Website We look for the development of a peer lending website. Qualified candidates will receive a full spec, thus that that they can refine their bid of

We need help in website to buy as well as sell digital files, We need help ...

We need help In Website to Buy as well as Sell Digital Files I want a website created where users are able to buy and sell digital files. The users will have to all have usernam

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd