How to insert a page in the page ?

How to insert a page in the page ?

The easiest way to insert a page in the page layout with the site - is to use the opportunities provided by the HTML language.Namely - it is the ability to divide a single page to several windows.These windows are called "frames.""Frames" There may be contained in a few one page.Similarly, in one "frame" may include several such "frame" and each of them will be loaded from different sources.

So, how insert page to page?To do this, first of all, we need a simple text editor "Notepad", included in the standard set of Windows programs.Here are step by step instructions.

instructions on creating pages

page In order to build the necessary pages we set in the page, it is required to start, create a container for the frame.In the language of HTML - it looks like this:

...

These instructions are called "tags".In this case, it tags the container is opened and closed, respectively.But already between them should be tags that form the frames.Labels tend to contain different information.This information is called "attribute" tag.For example, we need to specify exactly how you want to divide the frames page:

...

"cols" - means that the page is divided vertically.What does "50%", I think, no need to explain.In order to divide the page horizontally, instead of "cols", to insert "rows".Also give an example:

...

exactly the same value it will have, if done like this:

...

asterisk indicates that all of the remaining space will be allocated to another frame.In addition, it is possible to specify a value not only as a percentage, but also in pixels, as the basic unit of measurement, which is used for marking pages:

...

Now that the containers all became clear, there was a question:as a html page insert in the html?Otherwise - how to fit the frame tag in the container?The easiest option looks like this:

...

In this case, "src" indicates which page should be loaded in the frame.If it happens that the desired page is on the same server, or in the same folder, it does not necessarily indicate all the entire address.It's bad enough that you can specify the file name, and the path that leads to the folder.These addresses are called "relative".A full address is called "absolute".An example of a relative address:

...

There is also the attribute "the scrolling", it is necessary in order to be able to set the rules for the scroll bars required us to frame, that is, the values ​​for "sliders":

...

In this case, "yes" indicates that the frame of the scroll bar will appear absolutely always.If instead, insert the value "no" - it will mean that the scroll bars will never happen.There is a third attribute "auto" - thanks to him, scrollbars appear only when needed.That is, if the contents of the frame will not fit into its borders.It is easy to understand that the attribute "auto" the most optimal and comfortable.By default, the settings on default, the frame boundaries can be freely moved with the mouse.However - it may prohibit, if you set the tag "noresize" attribute.It looks like this:

...

It is said that the tag "frame" must attend two attributes that govern the field between adjacent frames.This "marginwidth" - is obliged to indicate the indent from the next door field horizontally (ie, right, left) and "marginheight" - which does the same thing, but the vertical (top, bottom).As usual, we give an example:

...

Another important attribute - the attribute "name", which is intended to censure the name of the frame.In some situations, this is a very useful thing:

...

This small theoretical training should be quite enough for you to create a simple little page that contains multiple pages of other sites.Now open notepad and try to introduce what was your turn.Of course, be sure to save it in html format.Here you also find out how to insert a page in the page.We are confident that this information will not be superfluous for any web developer.