Writers' Community!
Home Page Two Columnists Q&A Submit an Article FAQs Contact Author Login
Sponsors
Article Submission
We Need YOUR Articles!
We'll Promote Them for FREE!

Author Login

New Authors
Register Here


Now Serving 8,188 Authors
71,865 Quality Articles
& 3,167 Current Users Online!
Featured Authors
Linda DeWitt (1,955)
Edward Rhymes (8,802)
Brianna Popsickle (2,452)
Teresa Ortiz (11,094)
Julian Price (13,305)
Stephany Springer (41,414)
Abigail Richards (9,854)
E. Raymond Rock (3,087)
Terry Mitchell (5,358)
Mark Parsec (16,695)
Nenita Wells (2,071)
Ira Coffin (12,696)
Krystal Kuehn (1,269)
Michael Ramzy (829)

View All Featured Authors
Most Recent
Creating the Perfect Website Design

How To Create An HTML Image Background For Your Webpage

Analyze Keywords Using Adwords Keyword Tool and Excel Macro Function

If You're Making These Web Site Mistakes, You're Scaring Prospects Away

Perl of Wisdom, Perl of laughter

PHP’s Paamayim Nekudotayim: The secret’s in the code.

The Macromedia Flash man looks to LEGO for a System.

Your Website Concept

What Makes A Good Website?

How To Build a Basic Web Page

Home » Categories » Website Technologies » Website Design » How To Build a Basic Web Page » Reprint Rights » Printer Friendly

Glen Nemeth

How To Build a Basic Web Page

Rated 4 out of 5
No Reader Ratings Available ?
Rate It  /  View Comments  /  View All Articles submitted by Glen Nemeth
Submitted Friday, October 26, 2007
Glen Nemeth (45)
Glen Nemeth

Glen the Graphics Guy
Log in to become a member of Glen Nemeth's Fan Club!



Building a Web page now is very different from how I built them when I first started designing Web sites. I have not forgotten the basics, though, and I still use them to this day.

Back in 1996, when I was first learning how to construct a Web site, I had no access to editing programs such as Microsoft's Front Page or Adobe's Dreamweaver. I had to learn HTMLHypertext Markup Language — and build my pages in Notepad, the non-formatting text editor that comes with Windows. For feedback, I would use the browser of the day, which at the time was Netscape.

Many people mistake such hand-coding for "programming," but it really isn't. HTML is actually a lot simpler, and far more user-friendly, than, say, JavaScript. HTML is a formatting language that tells the browser how to display your content, and where to display it on the page. Programs such as Dreamweaver and FrontPage give you instant feedback, but they have only simplified what was already a fairly simple effort to begin with. And with their automation came formatting errors that no one unlettered in HTML would even catch.

So why should you learn to build a basic Web page from scratch?

Because working with the source code empowers you to take control of the page rather than allow a program to do your thinking for you. When you take control of the page, you no longer have to accept the default browser settings. You are free to design at will. Using an adjunct formatting tool called CSS (Cascading Style Sheets) to modify the default HTML settings, you can create a page that looks like it was designed professionally rather than spawned by a struggling amateur.

So let's begin at the beginning. You will need to use Notepad, which can easily be found in Windows Accessories under All Programs. As a means of feedback, I recommend using Firefox, or any Mozilla-type browser. These are free downloads and are easy to install. You will later need to open your page in both programs: Notepad for editing, and the browser for feedback.

Avoid using Internet Explorer for feedback. All the security baggage Microsoft has brought to its browser makes it a pain to work with. Later on, when you've built the page and are satisfied with how it looks in Firefox, open up your page in Internet Explorer, jump through the all the Active X permission hoops just this once, to see how it looks. Then move on.

So now let's begin.

First of all, open up Notepad and File/Save the blank page you've opened with the file name "index.html." Any file name will do, but "index.html" is the filename of the first page a browser opens when the page is hosted on the Internet, so you would have to use it anyway if you intend to build your pages into a full Web site. As a file location, I recommend either Desktop or My Documents for easy access. Later on you can set it up with its own directory. When you open it later for editing, right-click on the icon and Open With Notepad.

Every basic HTML document begins and ends with matching set of opening and closing tags, <html> and </html>. So the first tag pair you should type into Notepad is:

<html></html>

You can arrange your markup code any way you like in Notepad to make the source code easier to read. Unlike real programming languages, HTML has a rather loose protocol and doesn't require specific spacing or position on the page. Just make sure you use opening and closing tags properly, where they are required.

Use the return button to bring down the closing tag below the opening tag, like so:

<html>
</html>

The next element of an HTML page is the Head, which encloses the Title of the page — which you will see in the upper left hand corner of the browser — and any "meta" information, which I will discuss briefly later on. For now, just type in the Head and Title inside the html tags, like so:

<html>
<head>
<title>My Web Page</title>
</head>

</html>

Not exactly rocket science, but this is a first step. You'll notice that I added text between the Title tags, My Web Page. Any text within those tags will do, the point being that the Title is absolutely necessary for search engines to distinguish one Web page from another

So your page has a Head, and now it needs a Body. Type in your Body tags after the closing Head tag and before the closing HTML tag, like so:

<html>
<head>
<title>My Web Page</title>
</head>
<body>
</body>

</html>

At this point you could just start typing content between the body tags, which is OK if you want all your content to be trapped in a single block stretching the full width of the page. However, if you want to start "styling" your page to make it easier to read, I suggest that you begin using Styles right away, which requires some explanation.

There are HTML tag pairs that are called “Block Elements" that determine what constitutes, for example, a “Paragraph," the basic unit of written composition in nearly all Western languages, including English. In HTML, the default tag pair for paragraphing is <p></p>. These render differently in different browsers, so I’m going to go out on a limb here and recommend that you NOT use them (I can already hear my fellow Web designers screaming “Foul!" — ignore them for now).

In my experience, the <div></div> tag pair is much more versatile and amenable to styling. In all block elements there are qualifying properties that modify the appearance of the content between the tag pairs. These qualifying properties are called “attributes." I will demonstrate these by adding an introductory <div></div> tag pair between the body tag pairs, like so:

<html>
<head>
<title>My Web Page</title>
</head>
<body>
<div style="width: 400px;">
My Content is now enclosed within a block that takes up 400 pixels, or roughly 1/2 of the width of the page. Because this is the first block element on the page, it naturally rises to the top.
</div>

</body>
</html>

The <div></div> block is modified by using the “style" attribute to restrict the width of the block to 400 pixels wide. You could just as easily specify 600px, or any width for that matter, or a percentage of the page width such as 30% or 50%. This is the first block on the page, so it naturally rises to the top. If you want to space it down a bit, you could add some padding, like so:

<html>
<head>
<title>My Web Page</title>
</head>
<body>
<div style="width: 400px; padding-top: 25px;">
My Content is now enclosed within a block that takes up roughly 1/2 of the width of the page. Because this is the first block element on the page, it naturally rises to the top. I just added a little padding to push it down a bit.
</div>
</body>
</html>

If you want to indent the text a little bit to make it look the indented text you see published in print, you could further modify the attributes to just that, like so:

<html>
<head>
<title>My Web Page</title>
</head>
<body>
<div style="width: 400px; padding-top: 25px; text-indent:
10px
;">
My Content is now enclosed within a block that takes up roughly 1/2 of the width of the page. Because this is the first block element on the page, it naturally rises to the top. I just added a little padding to push it down a bit. I also added a text indentation.
</div>
</body>
</html>

If you want to add another paragraph, you can just copy and paste and div block you just created in to the space just below the closing div tag, like so:

<html>
<head>
<title>My Web Page</title>
</head>
<body>
<div style="width: 400px; padding-top: 25px; text-indent: 10px;"> My Content is now enclosed within a block that takes up roughly 1/2 of the width of the page. Because this is the first block element on the page, it naturally rises to the top. I just added a little padding to push it down a bit. I also added a text indentation.
</div>
<div style="width: 400px; padding-top: 25px; text-indent:
10px;">
My other content, that I copied and pasted below first div tag pair to get a second paragraph, is enclosed within a block that also takes up roughly 1/2 of the width of the page. Because this is the 2nd block element on the page, it naturally appears below the first. The padding I used to push it down a bit is repeated here to create a space between paragraphs. It too can be modified.
</div>

</body>
</html>

Now you have a basic Web page with two formatted paragraphs that will render the same in any of the major browsers. In this phase, it is still not ready to be published on the Web, although it would certainly display there just fine. You need Meta Tags in the head just below the Title to tell the browser what type of text you are using, as well as those describing the content and providing keywords for search engines.

It is not in scope of this article to go into such refinement, and there are many other ways to use Cascading styles to modify the look of the page. I've already met my goal of showing you how to build a basic Web page. You can go to the resources section of my Web site if you want to learn more about HTML and CSS and how to use them effectively.

Just remember, you don't have to accept anybody's default style for any page you develop. You have choices only as long you persist in learning ways to acquire them. As with any endeavor, you get back what you put into it.



tweet this!

The author of this article has chosen to make this article available with free reprint rights.
Click here to copy this article.

Reprint Rights

Log in to become a member of Glen Nemeth's Fan Club!

No comments yet.


Was this article helpful to you? Leave a Public Comment or Question:

This Article has been viewed 553 times.
Article added to SearchWarp.com on 10/26/2007 2:30:57 AM.
View other articles written by Glen Nemeth (45)
Glen Nemeth


If you found this article interesting, you may want to check out:

Disclaimer:  All information on this site is provided for informational purposes only! By no means is any information presented herein intended to substitute for the advice provided to you by any health care or other professional or organization.


Today's Most Popular
Creating Dynamic Website Content with PHP - MySQL

My Experience With Coconut Oil

Choosing An Effective Website Colour Combination

How to Create a Splash Page for Your Website?

How To Create An HTML Image Background For Your Webpage

Photoshop’s Pen Tool for Tracing Vectors

Build A Successful Website For Dummies

Basic Design Principles Part 2 Tone, Texture, Light, and Shade

PHP Session Handling

Website Design Elements That Work (And Some That Don't!)

Viewed from Cache. Load Time: 0.015.

Home  |  Page Two  |  FAQ's  |  Contact  |  Terms of Service  |  Article Submission Guidelines  |  Questions & Answers  |  Privacy  |  Mission / About
Copyright © 1999-2009 SearchWarp.com, All Rights Reserved - SearchWarp.com is an IcoLogic, Inc. Company