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 qr code generator development estimate, QR Code Generator D...

QR Code Generator Development Estimate We would like to demand of you an estimate for merging the following html software attached from our posting and Google Chart API necessar

Develop an ecommerce website in the optical industry, Develop an ecommerce ...

Develop an ecommerce website in the optical industry that will allow customers to shop for frames upload/order prescriptions and have a shopping cart and pay. Need to look similar

Need assistance in php-exchange integration, Need assistance in PHP-Exchang...

Need assistance in PHP-Exchange integration via Exchange Web Services The developer must have the following- 1) Experience with PHP web services using SOAP protocol 2) Und

Website graphic design and cakephp features, Website Graphic Design and Cak...

Website Graphic Design and CakePhP Features Project Description: Installation of a number of small features and changes on Cake PhP site, as well as changing the graphics of

Tcp - ip networking model, This is an acronym for Transmission Control Prot...

This is an acronym for Transmission Control Protocol / Internet Protocol. This is a collection of applications, protocols and services. TCP/IP protocol was developed prior to the O

I want help of php programmer with codeignite, I want help of PHP Programme...

I want help of PHP Programmer with CodeIgnite, Java, and MySQL experience. We are in succession on Ubuntu with a MySQL Backend. The website is written in PHP and CodeIgnter.

Explain different types of statement which are there in php, What are the d...

What are the different types of statements which are present in PHP? There are four types of PHP statements which are present. They are as follows: • Simple statement- the

Want simple/basic word press website created, Want SIMPLE/BASIC Word Press ...

Want SIMPLE/BASIC Word Press Website Created In want of a US based freelancer to create a very simple/basic word press website in the next 24 hours. Brand Identity completed as

Adding css style to html page, Step 1: Click on Window Menu Step 2: choo...

Step 1: Click on Window Menu Step 2: choose CSS Styles Or Click onto CSS Styles in the "Launcher" Step 3: Click on New to generate a new CSS style Step 4: select the Ty

We need help in mobile punch card builder, We need help in Mobile Punch Car...

We need help in Mobile Punch Card Builder I have a mobile site builder platform which I would like users to as well be able to create mobile punch cards (punches) & Rewards poin

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