Clip Art Images and Animation Downloads from Graphics Factory
JOIN TODAY LEARN MORE USER REVIEWS USAGE RIGHTS HELPSIGN-IN
You are here: Home > Support > Making A Web Site

Making A Web Site from Scratch
By: Robert Gillen 04/20/2001

Tuesday, February 9, 2010
This tutorial will take you through the process of making a 3 page Website from scratch, without any editors or third party programs. You will learn the basic foundation of a Website and how to use tables to control the layout. All actions will be in green so you know when you should be doing something.

This tutorial was developed in Windows 2000 using Internet Explorer 5.5 and is designed for beginners.

Getting Started Notes:
Programs needed for this tutorial:
Note Pad from Windows and any Web browser. Sorry MAC users this is based around PCs, but will work just the same if you know the difference in commands, etc...

Knowledge needed:
Basic understanding of the Copy and Paste command, also the understanding of folders and files. These are recommended but not necessary

Extra information:
When you see this icon hold your mouse over it for hidden information.


OK, let's get started.
For this tutorial we will make a basic Web site with no graphics, we'll only use Tables, Text and Colors. You can import your own graphics once finished if you want to.

This is the layout for the Web page we'll be creating:

Spot 1: This spot is for the menu and maybe some extra links to your friends.
Spot 2: This is the content area.

This type of layout is really common and can be made to look very different with a little imagination. You can use this same layout for your complete site, it will help keep the look consistent.


STEP 1: Directory creation...
... Right-Click on your Desktop and choose New Folder, then name it Home. The folder doesn't have to be on your desktop, but for this tutorial it will be.


Your Web page folder You will have a folder that looks like this and you will keep all of your Web site content inside of this folder.

STEP 2: File creation...
... Double click your new folder so you're inside of it and right-click. Choose New File and name it index.html.
Your Web page You will now have a file that looks like this example.

STEP 3: Open file...
... Double click your new index.html file so it's open. You will see a blank screen and that is where your HTML coding will go.

STEP 4: The foundation...
... Now let's get into the HTML part of your page. Below is the basic foundation of every Web page. They all start the same and use the same coding, just put together differently, like a puzzle.

The foundation of every Web page:
Here is where it all starts. Select the code below and Copy (Ctrl+c) and Paste (Ctrl+v) the code below into your index.html file.

<HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>
<BODY>

<!-- Start Site Content -->

<!-- End Site Content -->

</BODY>
</HTML>


Now let me explain what each part above is for.

<html> This is the start HTML tag.
This tag starts your Web page. All HTML tags have a start and ending tag. If you look above you will see <HTML> start the code and </HTML> end the code.

<HEAD> - HEAD Tag.
This tag starts the header of your Web page. The HEAD tag contains the Title tag and META tags. The HEAD tag also has a starting and ending tag.

<TITLE> My First Homepage </TITLE> - TITLE Tag.
This tag gives your Web page a Title and always goes within the HEAD tag. With HTML you can place many Tags inside of other Tags. Name your page My First Homepage.

</HEAD> - End of the HEAD tag.

<BODY> - Start of the BODY tag.
Within the BODY tag is where you assign the link and background colors, we will do this later. After the BODY tag is where all the actual content is put. You can place anything within the BODY tag like text, graphics, and movies.

<!-- Hidden Code --> or <!-- XXX -->
This code can contain notes only viewable by the person looking at the code. We included them in this tutorial to help you see where things go.

</BODY> - Ends the BODY tag
</HTML> - Ends the HTML tag and Web page.

Easy enough right? You now have your Webpage built and just need to add content. The first part of content is the layout, Step 5 will get you started on the layout using tables.


STEP 5: Adding the BODY atributes...
This is how you control the text, link, background, and active link colors. You use HEX color codes for HTML, you can find all the color codes here if you don't know them.

Copy and Paste the BODY tag below over your BODY tag.
<body BGCOLOR="#FFFFFF" TEXT="#000080" LINK="#0000FF" VLINK="#800000" ALINK="#008000">

Code Explanations:
BGCOLOR="#FFFFFF" - This will make your background color white.

TEXT="#000080" - This will make your text color Navy Blue.

LINK="#0000FF" - This will make your link color bright Blue.

VLINK="#800000" - This will make your Visited link dark red. A Visited link is a link that has already been visited.

ALINK="#008000" - This will make your Active link green. ALINK is what happens when someone clicks a link.


STEP 6: Adding your layout...
... We're going to use one main table to control the content for this page.
Copy the code below and Paste it in between your beginning and ending BODY tag.

<DIV ALIGN="center"><TABLE WIDTH="590" HEIGHT="0" CELLSPACING="1" CELLPADDING="1" BORDER="0"> <TR>
<TD>
<!-- Start Side Content -->

<!-- End Side Content -->
</TD>
<TD>
<!-- Start Middle Content -->

<!-- End Middle Content -->
</TD>
</TR>
</TABLE></DIV>

To make sure our new page is very compatible with all browsers and screen resolutions, we will make our Website 590 pixels wide. This guarantees that everyone will be able to view your Web page the same way.

You're index.html file should now look like this:
<HTML>
<HEAD>
<TITLE>
My First Homepage </TITLE>
</HEAD>
<body BGCOLOR="#FFFFFF" TEXT="#000080" LINK="#0000FF" VLINK="#800000" ALINK="#008000">


<!-- Start Site Content -->

<DIV ALIGN="center"><TABLE WIDTH="590" HEIGHT="0" CELLSPACING="1" CELLPADDING="1" BORDER="0"> <TR>
<TD>
<!-- Start Side Content -->

<!-- End Side Content -->
</TD>
<TD>
<!-- Start Middle Content -->

<!-- End Middle Content -->
</TD>
</TR>
</TABLE></DIV>

<!-- End Site Content -->

</BODY>
</HTML>


Save your page here and if you want to view it to see how it looks; use your Web browser to open it. I recommend Internet Explorer but use Netscape if you must.

To view your page:
In your browser go to File and then Open. Click Browse and then locate the index.html file you created above.

So, how does your page look? What, it's blank? That's good, It's suppose to be blank LOL

NOTE:
You can right-click on any Web site and choose the View Source option, this works great with Internet Explorer because it opens a Note Pad (.txt) document right away, which you can instantly Save As... an .HTML file.
Try it now, Right-click this page and choose View Source. You will be looking at the HTML coding for this page.

This is your foundation and layout, we haven't added any actual content yet. So if you have a blank scren everything is fine. Believe it or not we're almost done with your first page.


OK, you finished the first part of your page. Go ahead and pat yourself on the back and then put it in low gear we'll get into some bumpy road ahead Smile



Signin


Join today for instant access and unlimited downloads to over 1 Million images at your finger tips anytime you need them.
  • 1,031,967 Copyright-Safe images
  • Unlimited Downloads
  • No Per-Image Fees
  • Instant Access
  • Royalty-Free Usage Rights

1 Year of Downloads $49.95 Join Now


Join Today - Sign-In - Affiliate Program - About Us - Privacy Statement - Site Map - RSS - Blog

GraphicsFactory.com is Celebrating 12 Years Online!
Copyright © 1997-2009 GraphicsFactory.com. All Rights Reserved.