g
Printer Friendly Version

editor  
BellaOnline's HTML Editor
 

How To Compress The HTML Code For Your Webpage

In this tutorial you will learn how to compress the HTML code for your webpages.

There are good reasons for compressing your HTML code. Although a compressed file will appear the same in the web browser, the compressed code will download faster. Also, it is difficult to read compressed code. This will act as a safe guard against theft.

As you learned in the HTML Basics Series, you should create your HTML webpage as a plain text file and use the .html or .htm extension. So let's say you want to compress a file named mypage.html. Because compressed HTML code is difficult to read, you should keep the original mypage.html file in the uncompressed state. This will make it easier to make changes to this webpage at a later date. In order to keep the original file uncompressed, you will need to put the compressed code into a second file. Let's call this destination file compressed.html. Create this file in the same folder as the original file. This file can start out as a blank file.

So now you have two files in your folder--mypage.html and compressed.html

Now open the compressor program. You will see two input boxes where you will put the names of the original file (mypage.html) and the destination file (compressed.html).

1. Click on the little folder icon and use the browse feature to locate mypage.html and place this file in the Source input box.

2. Use the browse feature for the Destination input box and put the compressed.html into this box.

3. You may or may not have Compression Options that you can choose. For the purpose of this general tutorial you can keep the default settings.

4. Click the Compress button.

Now you have your compressed html code in the compressed.html destination file. Upload this file to your web server in the usual manner and give it the name of the original webpage (mypage.html).

Note: If you have more than one file to compress, you can use the same destination file (compressed.html) each time. Just be sure you upload the compressed code for the first file to your server before you compress your next file. You should always backup your original files before compression.

HTML Source Compression Programs - Webmaster Resources - Shareware and Freeware




This site needs an editor - click to learn more!

HTML Site @ BellaOnline
View This Article in Regular Layout

Content copyright © 2013 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Editor Wanted for details.



| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2013 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor