How to Write a Basic Web Page from Scratch

By Patricia Resnick

Rate: (2 Ratings)

Web pages look terribly complicated, and they absolutely can be. Still, there are a few basic components that can get you started. Web pages are written in a code called HTML, which stands for Hypertext Markup Language. It's a way of telling the browser how to display the information on your page, by using what are called "tags." We'll start with some very basic tags.

Instructions

Difficulty: Moderate

Things You’ll Need:

  • A computer
  • A web browser
  • A Notepad-type program
  • A computer
  • A web browser
  • A Notepad-type program
  • Your previously created .html document

Create the Head of a Web Page

Step1
Almost all tags come in pairs, including the tags we'll use here. All tags are surrounded with "<>." The first pair of tags you'll use is:



Open a new Notepad document. Type those tags into the Notepad document.
Step2
A basic web page has two parts, the head and the body. You create those with the following tags:



Type those tags in between your and tags.
Step3
By now you've noticed that tags have a beginning and end, and they start and end in order. Your next pair of tags goes in the head of your page. Type these tags between and :

Step4
Type the name of the page in between the and tags. For now, use your name. It will look like this:

your name here
Step5
Choose a place to save your document, then select "Save As" on the "File" menu. Save your document as "html practice.html"

Create the Body of Your Page

Step1
Now for the body of the page. You need to tell the browser what size to make the text. The basic size tags are

,

,

,

,
,
. The smaller the number, the larger the text.
Step2
Another basic tag is
. It doesn't have a second half. It tells the browser to create a line break. This is useful to align text.
Step3
We'll use this these tags to create the first page. Type the following in between the and tags:

Your name here



This is H1 text.



This is H2 text.



This is H3 text.



This is H4 text.



This is H5 text.


This is H6 text.

Step4
You can modify text in other ways. Using will make text bold. Using will make text italic.
Step5
Save your document. Now, open a browser window. Use Internet Explorer, Firefox, Netscape, or another web browser. Go to the File menu list, and choose "Open File." Browse until you get to the new document, and then select it and click "open." You should see the web page on the screen!

Tips & Warnings

  • Notice that the tags start in order, then close in reverse order.
  • Text is automatically left-aligned. You can change that by adding an "attribute" to your size tags as follows:

    . You can also insert a "center" tag right after the body tag,
    and this tag right before the tag,
    .
  • There are many fine programs that will automate this process for you, but it will be easier to make them do what you want if you understand a bit about it before you start.

Comments

| View All Comments
Flag This Comment

on 6/17/2008 I agree. HTML can become complex, but it does offer so much control over your website pages. I would the novices start with a website buider like Intellysite. www.intellysite.com. It is a website builder that DOES NOT require HTML knowledge. But, if you are an HTML pro, you too can use templates on IntellySite. This website builder is so powerful that it allows the user to control all the HTML and CSS files for each template. In fact, IntellySite will even allow outside designed templates to be uploaded to its engine.

Check it out at www.intellysite.com. It's your website. Build it!

Flag This Comment

on 6/17/2008 I agree. HTML can become complex, but it does offer so much control over your website pages. I would the novices start with a website buider like Intellysite. www.intellysite.com. It is a website builder that DOES NOT require HTML knowledge. But, if you are an HTML pro, you too can use templates on IntellySite. This website builder is so powerful that it allows the user to control all the HTML and CSS files for each template. In fact, IntellySite will even allow outside designed templates to be uploaded to its engine.

Check it out at www.intellysite.com. It's your website. Build it!

WendyRenee

WendyRenee said

Flag This Comment

on 5/27/2008 This is great!! I want to get back into html, but it has been many years so I need a refresher course. Thanks for the tips!!

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article: How to Write a Basic Web Page from Scratch

Article By: Patricia Resnick

Patricia Resnick

Authority Authority | 2124 Points

Category: Internet

Articles: See my other articles

Related Ads

Internet

Veesites
Meet Virginia DeBolt eHow’s Internet Expert.