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

We need help in website developer and programmer, We need help in Website D...

We need help in Website Developer/Programmer for Fashion Tech Company London based applications only We are in search of a Website developer/programmer to make the site for u

I need help to develop drupal rooms, I need help to develop Drupal Rooms ...

I need help to develop Drupal Rooms I have a website I build it with Drupal for Rent apartments, I have five buildings in different places Every building have different capacity

We require a drupal developer, We require a Drupal developer I'm in sear...

We require a Drupal developer I'm in search of a skilled and experienced Drupal developer who can work with me on the following- a) Fix theme issues mainly related to CSS (Th

Need help in social network website, Social Network Website The social w...

Social Network Website The social website should have profile creation, upload profile photo, inbox messaging, support uploads for video, photo, audio and text files post and br

How to connect database, I am working in php basic learner want to know ho...

I am working in php basic learner want to know how to connect database

Prepare a marketplace which will be dedicated to handicrafts, We aim to pre...

We aim to prepare a MarketPLace which will be dedicated to handicrafts. The concept is to provide artists the ability to sell their products via a MarketPlace similar to etsy or ar

Onerror event handler, The onError event handler executes the indicated Jav...

The onError event handler executes the indicated JavaScript code or function onto the occurrence of an error event. It happens while an image or document causes an error throughout

Colspan and rowspan, Now let us see how to deal with ROWSPAN (Row Span) and...

Now let us see how to deal with ROWSPAN (Row Span) and COLSPAN (Column Span). If we desire the cell containing Ajay in Figure to be extended to the next cell as well and make th

We need analyst programmer, Analyst Programmer Our Esteemed as well as R...

Analyst Programmer Our Esteemed as well as Reputable Client is looking for an Analyst Programmer (Python) for their organization. The candidate is essential to perform web devel

Needed responsive wordpress design and development, Responsive WordPress De...

Responsive WordPress Design & Development I have numerous project however I need to complete Responsive WordPress Design & Development on time and good quality Desired Skills

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