21st November 2009 search this site | sitemap | advertise 

  HTML part 2 - The code structure for the web page

spr
Welcome to the part 6th of our tutorial where we continue with HTML.
spr
Save 25% on Web Easy 6 Professional
spr
This page is © Copyright 2001-2009 helpwithpcs.com
spr
1 - Finding a host 2 - Programs 3 - Designing page layout
4 - Designing part 2 5 - Intro to HTML 6 - Intro to HTML Part 2
7 - Creating the page

So, now you have a basic idea of how HTML tags work, we should look at creating the page we are going to use as an example.

First we need to split our page into three sections, to do this we will use a simple table with 3 rows.

The first row for the logo/Title, the second row for the links to other pages and the third row for our page content. In our example we are going to give each row a border so we can see how they are separated.

We have also included some more HTML tags. For instance, the <CENTER> tags are used to centre/center align the text/image. The <BR> tag is used to start a new line.

Below is the HTML code which will achieve this result:

© Copyright 2001-2009 helpwithpcs.com
<HTML>
<HEAD>
<TITLE>Our new webpage title</TITLE>
</HEAD>
<BODY>

<table border="1" width="100%">
<tr>
<td width="100%"><center>This is the top row, place Logo/title here</center></td>
</tr>
<tr>
<td width="100%"><center>This is the second row, place links here</center></td>
</tr>
<tr>
<td width="100%"><p>This is the third row, place main content here<br>second line of content...</p></td>
</tr>
</table>

</BODY>
</HTML>

To see a working example of the above code click here.
spr
Click here to continue the tutorial.
spr
back to top | © Copyright 2001-2009 helpwithpcs.com
spr
Click Here for CoffeeCup Website Design Software
spr