The Basics of Making a Web Page

  • How to create HTML pages using a text editor
  • The bare bones of HTML page structure
  • How to save pages
  • How to link pages together
  • How to upload your pages to a live web server

Pages are made of HTML

Web pages are described with a markup language called HTML. This provides the content and structure of the pages. It also says where images and other stuff should be.

The good news is that HTML is fairly easy to learn. Here’s my introduction to HTML and the basic tags »

You start a web site on your own local computer by creating one or more HTML pages, then linking them together.

What software do you need to make HTML pages?

To have full control over your web pages (and to be able to create interactivity using scripting languages) it’s best to code by hand.

You can do this with any text editor (like Notepad), but there are some much better free text editors (like TextPad).

You don’t even have to know HTML to make a web page. There are lots of visual editors (sometimes called WYSIWYG editors). NVu is a free WYSIWYG editor that’s fine for beginners.

Your first web page

HTML pages should always include the following. You may want to copy & paste this into a new text file…

index.html v1

<html>

<head>

<title>Page title</title>

</head>
<body>

Your visible content goes here…

</body>

</html>

Notice how everything is contained between <html> and </html> tags.

This is an example of a paired tag, which need a starting tag and a matching closing tag (indicated with the forward-slash). Paired tags describe the content between them. In the case of the <html> tag, it’s telling a web browser that everything between the 2 tags is HTML.

Within the HTML, there are 2 main bits that are part of every HTML page: the head section and the body section, marked up with the paired tags <head></head> and <body></body>.

The head section

The head section of an HTML page contains information about the page, like what it’s title is, whether it should use stylesheets etc. Its contents are not seen in the browser window (well, the title appears in the title bar..).

The body section

The body is where the vislble content goes. Anything you put in the body of your HTML will be displayed in the browser (unless it’s hidden).

You may want to check out the basic HTML tags, and play with putting some of these into your HTML.

Saving your HTML pages

To make an HTML page, just save your text file with the extension .html. Then, a web browser will know exactly what to do with it.

Naming your HTML files

I recommend saving all your files with lowercase names.

If you’re developing on a Windows machine, it won’t be strict about filenames being in the correct case (AboutUs.html is treated the same as aboutus.html).

But if you upload your site to a Linux web server (which most of them are), it will mind. If you ask for Blah.html, and the file is called blah.html, you’ll get a "page not found" error.

Also, I recommend against having blank spaces in file names. I generally use hyphens (-) instead of spaces.

Index pages

Whenever you open up a web site, or a particular directory on a web site, without asking for a particular page, the web server will give you the default page or index page.

All you need to know for now is that every folder in your site should have a file named something like index.html. Otherwise, if someone browses to your site/folder, they may be presented with a list of web pages to choose from (not very professional), or may possible be given an error message!

Viewing your page

Let’s say you’ve saved your file to C:websitesfirstindex.html

All you need to do is type that into your web browser address field, or use File > Open and browse for the file.

You should see something like this…

 

Shot of first web page

Note how the browser’s title bar reads: "Page title" – the words we put in the <title></title> tags.

And the words we put inside the <body></body> tags are visible on the page.

 
 

Linking pages together

Let’s say we’ve created another page, for "Contact details".

Here’s the simple HTML…

contact-us.html

<html>

<head>

<title>Contact Scratchmedia</title>

</head>
<body>

You can contact Scratchmedia by opening the window and shouting very loud.

</body>

</html>

To link to this page, we first need something to act as the clickable "anchor", so we’ll change our original page to

index.html v2

<html>

<head>

<title>Scratchmedia’s home page</title>

</head>
<body>

<p>

My first paragraph, describing what we do.

</p>
<p>

Why don’t you contact us!

</p>

</body>

</html>

What I’ve changed:

  • I’ve made the title a bit more meaningful ("Scratchmedia’s home page")
  • I’ve changed the text, and put it into 2 separate paragraphs, using the <p></p> tags

Adding the link

All I need to do now is make the text "contact us" a hyperlink to the Contact Us page.

In HTML, I do this with an anchor tag (<a></a>).

The anchor tag has a couple of uses, but its main one is to create hyperlinks to other places. To do this, we need to put something within the start <a> tag and the closing </a> tag. This will become the clickable target.

The other thing I need to tell the anchor is where to link to. I do this by adding the href attribute to the opening <a> tag (href stands for "hypertext reference").

Here’s how the HTML looks now…

index.html v2

<html>

<head>

<title>Scratchmedia’s home page</title>

</head>
<body>

<p>

My first paragraph, describing what we do.

</p>
<p>

Why don’t you <a href="contact-us.html">contact us</a>!

</p>

</body>

</html>

If you refresh the page in your web browser after making those changes, it should look more like this…

 

Screenshot after adding hyperlink

Adding the paragraph tags has spaced the text out, making sure it’s easy to read.

The text inside the anchor tags is now an active link, which you can see by the blue, underlined style.

 
 

And if you click on the "contact us", you should link through to the contact page (assuming you’ve created one).

 

If you can see this, you’ve just created your first web site. Congratulations!

Contact us page shot

 

Uploading your pages to the web

This is great, we have two working web pages, linked together, which forms the basis of a web site.

But, for other people to see our site, it needs to be hosted on a server that is connected to the World Wide Web. If you don’t have a hosting provider, here is a list of some cheap web hosts.

The most common way of uploading web pages to a web server, is using FTP software.

You can get FTP software for free too. If you use Mozilla Firefox, I recommend Fire FTP, which is a Firefox extension

 

Click to enlarge (Screenshot of Fire FTP)

Screenshot of Fire FTP (50% scale. Click image to enlarge.)

 

Most FTP software works in a similar way.

  • First, you have to log in using details provided by your web host:
    • FTP location (e.g. "ftp.yoursite.com")
    • A username
    • And a password
  • On the left hand side of the window, you can browse your local computer.
  • On the right hand side, you browse the remote web server.
  • You can compare the local files to the files on the server, and upload or download between them.
  • The software will usually handle all the necessary stuff like logging in/out, managing connections, and trying again when it fails to transfer files. In the example above, it’s telling you what it’s doing in the bottom window.
  • Some offer helpful things like comparing the locations to see which files are different.

So, if your webspace is http://www.yourspace.com/yourusername/ and you upload the files you’ve just made, you ought to be able to browse to the web address and view both the index page and click through to the contact page. And that means everyone else can too!

Recommended further reading

Read it offline

Buy the entire Basics of Web Design section as a PDF e-book:

only £1.50 GBP

New eBookNew eBook - Guide to Semantic HTML

Ben Hunt adds another great eBook to the collection with his "Guide to Semantic HTML". The book gives you advice and tips on how, and why to use semantic HTML.

Included is a comprehensive list of HTML tags, each with their semantically appropriate uses, along with a worked example taking you through the process of how to build a website using semantic HTML.

Get “Guide to Semantic HTML” now for £5.00

New eBookNew eBook - Web page production with xHTML and CSS #1

Experience the thought process of a professional web producer as he guides you through the web page production process, from photoshop design to working HTML template.

The book tells you how to approach web production, beginning with semantic HTML, guiding you through how to slice up a photoshop document, and finally how to use CSS for presentation.

Buy Now for £9.00 GBP

 
Save the Pixel web design book

Read the Ebook from Web Design from Scratch - SALE - 1/3 OFF!

"Save the Pixel - The Art of Simple Web Design" is Ben Hunt's manifesto for simplicity in web design, plus a comprehensive guide to achieving great results.

It's over 100 pages of guidance on the process of designing simple web pages, complete with 22 before & after examples of real home page redesigns and dozens of practical techniques you can use today.

Howie Jacobson, author of “Adwords for Dummies”, says...

“Save the Pixel is the best book on web design and usability I've ever read, and one of the best books on internet marketing in general. If … you haven't discovered the strategies and tactics in Save the Pixel, I guarantee you're throwing away money.

Read more testimonials…

ONLY £27 GBP

Visit savethepixel.org for more info...

PDF download (7.4MB)
Get Adobe Reader
 

Make Better Web Pages!

How to make your web site sell - use my secrets

Find out How

Do you love our approach to crafting simple & effective web sites that just work for people?

We'd love to hear about your web strategy.

Contact one of our team today!

Leave a comment

Articles + tutorials in Basics

What is the Relationship Between Graphic Design and Web Design?
Explores the difference between design, graphic design, and web design. Argues that web design is a much broader discipline than graphic design.
How You Can Easily Boost Your Web Site’s Success Today. A Simple Step-by-Step Guide
How every web site owner can make their site more effective by applying the principles of simple web design explained in Ben Hunt's ebook
The Simple Shall Inherit the World Wide Web
The case for simplicity in web design, with tips and guidance for designers
SEO Basics, introduction to Search Engine Optimisation
A simple guide to the Basics of Search Engine Optimisation, how to optimise web pages for search engines
How to make a web site
Introduction to the process of building and publishing web pages, and overview of tools (text editors, FTP)
The Web Design Golden Rule
My golden rule for web page design - a simple touchstone to help all design decisions
Layout in Web Design
No-one looks at the screen
Why no-one wants to look at the screen when browsing the web
How to design for the web
Basics of how to design web pages for the way users really use the web
Text-based logos
Why text-based logotypes are very effective
The Sphere of Design
A conceptual tool for visualising the balance between functionality and aesthetics in visual design
Logical Positioning of Web Page Components
Importance of logical order of visual components in web page design
Scanning and Readability of Web Pages
Scanning is the most important feature of web users' behaviour. This article looks at why users scan and what designers can do to help us scan better.
Factors that influence the web browsing experience
Guide for web designers on the factors affecting how people use the web, interact with web pages, and scan instead of reading
Web Design Conventions
Understanding how to use conventions is a critical skill in design
How to Design for the Brain’s Strengths
Understanding what the human brain has evolved to do helps designers create better web pages
The Design Spectrum
A visual tool for picturing the relative aesthetic and functional elements of a design solution
Readability – making web pages easy to read
Trusting the Web Site User
Why it's important to trust users when designing web sites and applications
Why Most Web Sites Suck
Reveals the main reasons why most web sites and web page designs are so bad
Web Users are Impatient
Why web users are impatient when using the web, and what designers can do to improve the online user experience
Simple Web Designs Work Better
Explains the principle of Simplicity in web design
Why the web is hostile and how we cope
People don't use web sites in the way web designers think they do. This article explores why the web is so difficult to use, what people do to cope, and the implications for design.
© Scratchmedia Limited, 2006-2010
Floor 3, 111 Buckingham Palace Road, London, SW1W 0WQ, UK
+44 (0)207 1600 989