HTML Tutorial part 4

HTML Comments

HTML comments can be used to organize your code or to remind you what a certain portion of code does.

All HTML comments begin with <!– and end with –>. Here’s an example comment:

<!--My Comment Goes Here-->

Coding Practice

It’s always positive coding practice to make sure your code does not overlap. For example:

Incorrect: <b><i>Text</b></i>
Correct: <b><i>Text</i></b>

You should always close HTML tags in the order in which they were opened.


Also, make sure you use quotation marks where necessary. When defining attributes, you must always use quotation marks. Example:

Incorrect: <body bgcolor=#0000ff>
Correct: <body bgcolor="#0000ff">

We are finally ready to publish our documents to the web!

The first step to publishing to the web is to ensure your documents are in “.htm” or “.html” format. This can be done simply by renaming the file extension.

You will now need to order a domain name such as You can get a domain name at or

Next, you will need to order web hosting so your website can be displayed properly.

Once everything is properly prepared, you will need an FTP program to upload your files to the internet. FTP stands for “file transfer protocol.”

Simply use the FTP program to upload all the files to your web host. If you need help with FTP, just contact your web host’s support. Uploading varies from web host to web host so it’s best to contact your web host’s support department for assistance.

Once you have everything uploaded, type in the URL of your website into your address bar and browse your site.

Congratulations! You’ve just setup your first website!


View more posts from this author