First webpage guide First webpage
Second webpage
First pages summary

Programming

Programming intro
Java

Markup

HTML
XHTML

Style & Layout

CSS

Browser scripting

Javascript
VBScript
AJAX

Server scripting

PHP
ASP

Making money online

Make money online

Second webpage guide

Your first webpage contained several parts, many of which were sorrounded by < and >. In HTML, anything sorrounded by < and > is called a tag. For example, the <h1> tag. This tag sets text to appear in a big heading size.

Tags explained

The most basic web page will consist of two tags. Having a web page without these two tags is no good. These two tags are <html> and <body>. The <html> tag signifies the beginning of an HTML document. The <body> tag signifies the beginning of the visible content of an HTML document.

Example:

<html>
<body>
Here is some text
</body>
</html>

The two tags at the end of the above example - </body></html> are closing tags. Closing tags signifiy the end of a section of a document signified by their respective open tags. So everything between the <html> and </html> is the entire HTML document, and everything between the <body> and </body> tags is the visible content of the document.

An "/" character is placed inside a tag one space after the "<" character to specify a closing tag.

NOTE: Be sure to always open and close tags in the correct order as in the above example.

Creating your second web page

Copy this code into notepad or another simple text editor to create your second web page using the same instructions as in the previous tutorial.

<html>
<head>
<title>My second webpage!</title>
</head>
<body>

<h1>This is my second webpage!>/h1>

<p>
This is a paragraph!
</p>

</body>
</html>

Save the file with any name you like, but make sure it has a .html extension! If you don't remember how to view it, reference the instructions from the previous tutorial.

Practice

Online code editor
Practical examples
Practical exercises
Step-by-step tutorials

Reference

Terms glossary
Reference material

Rate this site

Rate this site
Visitor comments