Arrangement of menu (position and layout of menu)
The position of the menu is various, and it is below and there is the one that not is at all either the right on the left on the page when the homepage is inspected. Moreover, there are the one that the menu was made a frame, the one of the table union layout, and the one that the external file was taken by PHP and SSI. It thought about merits and demerits (advantage and disadvantage) by the arrangement of the menu.
Convenience on page by position of menu
As for the homepage, convenience on the page is different because of the position of the menu. In the page of top page and usual contents, the optimum position of the menu is different.
For top page on the homepage and top page on the subpage
Generally, it is the one that it is anxious what page you exist what first page this site is when top page on the homepage is opened. Then, it can be said that it is convenient that there is a menu in the position seen with top page opened. It can be said that it is unkind not to see the menu if it doesn't scroll every time.
Because all pages cannot be covered to 100 or more the number of pages in one menu when increasing, it is necessary to make the submenu of making the folder for the subpage. In this case, on a top page on the subpage, you will make the menu within the range where it sees first as well as the above-mentioned.
I think that it is not easy to use it by confusing when there are a lot of numbers of links either is related though the thing that making the submenu adjusts the number of links of pages to less than 100 being recommended by Google is related. The page that the number of links on page 1 becomes many hundreds of became not unusual in a recent blog. If possible, I want to adjust the number of links to less than 100.
For a usual page (For the page with each contents)
You need not be at the position in which the menu is seen soon for the page with a usual page, that is, each contents when the page is opened.
In a word, because the page was opened to see contents, it is more reasonable that contents are previously first displayed. Therefore, new is not necessary at the top of a page. It is right and left and I think that you should bring the menu below. Especially, this menu is only obstructive when accessing it by mobility (cellular phone).
However, it is the one of kindness to apply the link to the menu up when there is a menu the under the page.
Position of menu seen from SEO
The order in the source on not the position that looked think about the position of the menu by the viewpoint of SEO (Search Engine Optimization search engine optimization) but the page becomes important. It is in a word because you should previously write an important matter on the page in SEO.
It is necessary to bring contents previously than to write the menu previously. When the steps class is done by using float, I think that you should write the menu after contents, draw it to the right or the left, and display it.
When the menu position is absolutely specified by using "position:absolute" with columns, the menu is similarly written after contents. In this case, the position of the menu (upper, right, left, and under) can be chosen anywhere.
Because menus come earlier than contents when the menu is made left, the layout that uses the table is not good though the table class layout cannot be so recommended. When it is said menus are either behind contents if it is a right menu here coming, it is recommended.
Point where menu that uses frame is good and bad point
Because the menu becomes another file if the frame is used for the menu, it becomes easy to manage the menu. Because the menu is made a external file even if PHP and SSI cannot be used, it is used well.
However, the frame cannot be said that it is too good from the viewpoint of SEO. It is because the frame page (page on page or more 2) is not registered by the retrieval in the search engine but each page is registered as a retrieval page. The user will visit the page in the retrieval without the frame menu.
Then, because the user doesn't have the menu even if he or she wants to see another page, other pages cannot be easily seen. The link of the menu or navigations is displayed under each page, and you should fly to a related page and return in the top if you are so.
An internal link increases because it puts the menu and the link on each page like this if it says from the viewpoint of SEO. When the number of pages increases, even only an internal link becomes very advantageous in SEO.
Please stop this though there is sometimes a page to display the menu with the frame up. Because when the page is scrolled, an upper frame page remains being displayed. Then, the range where contents are displayed narrows, and convenience worsens. As for a recent browser, each function is displayed up. A narrow display part narrows further.
Method of taking external file by using PHP and making menu
If PHP and SSI are used, only the menu can be made a external file, and it becomes very easy to manage the file.
What is PHP does execute the script described in the HTML document by PHP of the server and as a result It is the one passed to Web a browser as HTML data.
To call the menu in the PHP file (The extension is usual php), as follows is done.
<?php include('http://domain/***/inc/menu.inc'); ?>
Because it is not possible to use it when the domain is changed and the domain is different when it is this method, as follows is done to use it by the general purpose.
<?php include($_SERVER['DOCUMENT_ROOT'].'/***/inc/menu.inc'); ?>
Here, '/***/inc/menu.inc' starts from "/" by the one that "http://domain" was removed from "http://domain/***/inc/menu.inc".
Anything doesn't change even if the external file can be called from any directory in a similar way, and the domain is different and this method can be used. Moreover, the extension of the menu file is not inc and cares about neither any htm, html nor php.
Method of taking external file by using SSI and making menu
SSI is abbreviation of Server Side Include. Because include is done by the servers end in a word, responsibility is borne in the server. Therefore, there seem to be a lot of servers that have not permitted the use of SSI.
To call the menu in SSI file (The extension is shtm or usual shtml), as follows is done.
Passing from the route of the domain to the menu is assumed to be /***/ inc/menu.inc as an example.
<!--#include virtual='/***/inc/menu.inc' -->
Here, '/***/inc/menu.inc' starts from /by the one that "http://domain" was removed from "http://domain/***/inc/menu.inc".)
Anything doesn't change even if the external file can be called from any directory in a similar way, and the domain is different and this method can be used. Moreover, the extension of the menu file is not inc and cares about neither any htm, shtm nor shtml.