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

A computer/website programmer, A computer/website programmer I am in sea...

A computer/website programmer I am in search of a professional to make me a website on which I could sell computer programs through credit or debit card and as well sell physica

Advanced html, In the previous unit you have study the fundamentals of HTML...

In the previous unit you have study the fundamentals of HTML. After study about how to make static web pages, now let us study how to develop Interactive Web sites. A good web site

I am seeking help in simple wordpress website design, A Simple WordPress we...

A Simple WordPress website /design is almost done I am seeking to hire an experienced web person to design website. Design is nearly ready. I would alike this site to be very

We are seeking of joomla template conversion, We are seeking of Joomla Temp...

We are seeking of Joomla Template Conversion I need to convert the template into Joomla format. The deliverables here are- a) The ENTIRE template including all the pages w

We need help to edit php code, We need help to edit php code Website wan...

We need help to edit php code Website wants editing and support in php Change notifications,logins as well as some other functionalities. Project to be discussed in more detail.

We need help in reputation on google need seo, We need help in Reputation o...

We need help in Reputation on Google Need SEO We have a bad criticism on the ripoffreport.com on google page 1 position 2. We want to have it pushed back to page three or more.

Want a simple html form having pagedown plugin, Need a simple html form hav...

Need a simple html form having pagedown plugin I want an html form having pagedown plugin in it. There must be submit button on the form which when pressed take submits the edit

Create an html document and java applets, For this project, you are requir...

For this project, you are required to design and create an HTML document (also referred to as a "Web page"), in which certain basic HTML elements are incorporated. Your HTML docume

We need help in system intrgration, We need help in System Intrgration-  Vo...

We need help in System Intrgration-  VoIP platform and ticketing system integration We are seeking to build an environment where inbound calls are accepted and forwarded to a se

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

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