|
|
Web Page StructureWe have already seen that the HTML code is not shown to the page viewer as the Browser uses this code to display the content. There are also HTML commands that aren't used by the browser but by search engines. This is called the meta data. If we look at the HTML code for a web page we see it split into two:
Here is the overall page structure.
The entire page is contained with the html tags. The meta data within the head tags and the content within the body tags. So with that in mind let's construct a simple page containing content and meta data. Here it is with the sections highlighted.
<html> and this is how the page appears when viewed in a web browser.
Structuring Web Page ContentIn order that the viewer sees the web page as you intended you will need to structure your content. This is very important as unlike newspapers which are of a fixed size web pages can be different sizes depending on the size of the monitor the visitor is using ad the screen resolution. The page content is split into two distinct components- The repeated/common content e.g. logo and navigation and the actual content. Although there are many different ways of laying out the content and navigation on a web page there are two of three preferred ways that are used by the majority of websites. A typical web page is show below:
The two main variations are to move the navigation to the right and/or to the top (under the logo) . Which you use is basically a design choice based on your preferences. Achieving the Desired LayoutThere are three methods which are currently in use:
Using TablesTables are the old way of laying out a web page and the method I prefer especially for beginners. The reason are:
Having said that probably 80-90% of the sites on the web use tables and I would recommend that you start by using table while you learn about building sites. You may at some time wish to move on to CSS layout I still haven't done so yet and my existing sites will continue to use tables for layout. -See Using Tables to layout your web page..
|
|||||