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

Define the document page title, Define the Document Page Title However t...

Define the Document Page Title However the document has a file name, notice it is labelled Untitled Document still; that is because it required an HTML document name, or page ti

Form target attribute, Corresponds to the FORM TARGET attribute. • Tex...

Corresponds to the FORM TARGET attribute. • Text - It is an object representing a text field. • Text area - It is an object representing a text area field. Some of the F

Need help in database driven website version 1.0, Need help in Database Dri...

Need help in Database Driven Website Version 1.0 This is going to be a database driven Angie's List or Yellow Pages style website for a niche market. Subscribers will be capable

Need a php front end developers, PHP Front End Developers - V Portal See...

PHP Front End Developers - V Portal Seeking a PHP front-end web developer familiar with API to develop web application. Project comprises creating functions following the MVC

Magento developer is required to audit and update a magento, Magento Develo...

Magento Developer is required to audit and update a Magento 1.702 website As we are quickly expanding ongoing work will be available for the right candidate. The ideal Magento D

We need help in web development, We need help in Web Development - Ongoi...

We need help in Web Development - Ongoing. WordPress as well as Infusionsoft experience required.

Develop live currency exchange platform, As the project name reveals, our c...

As the project name reveals, our company needs a live currency exchange platform that would allow people to trade Bitcoin and some other crypto currencies against several currency

We want help in wordpress developer project, We want help in WordPress Deve...

We want help in WordPress Developer Project We want a WordPress developer to create an E-commerce site based on a completed design Job Description- We're looking for a Web

What is $message and $$message in php, What is $message and $$message in PH...

What is $message and $$message in PHP. $message is a variable with a fixed name. $$message is a variable whose name is stored in $message. If $message comprise "var", $$mess

Executing deferred scripts, Deferred scripts do not immediately do anything...

Deferred scripts do not immediately do anything. To use deferred commands, you have to call them from outside the deferred script. There are three methods to call deferred scripts

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