HTML Image File Management
HTML Graphics. It is a real balancing act that is not always easy to carry out. Let's be honest. Web pages that are all text are just plain boring to look at. It's like reading the obituaries in the newspaper. So the graphics really come handy when it comes to spruce up your site a bit. The problem is that graphics, or more especially graphic files, can be very large and take a long time to load into a page. If you have too many graphics or if the graphics you have chosen are large, the visitor may lose patience waiting for the page to load. The end result is that you have lost your audience anyway because they have moved on. So how do you strike a balance between a boring-looking web page and one that takes forever to load? Let's go over some things you can do about this problem in this article.
The first and easiest thing to do is to simply not use too many graphics files on your site. Sometimes only one or two graphic files are carefully placed on a page to capture the attention of visitors, especially if you have a news page. Sometimes just a photo of the subject of the news, let's say a personality, is all that is needed next to the text of the news. If the news article itself goes beyond the first page you may perhaps add another photo related to the topic on the next page. This will continue to keep the attention of visitors by providing some images.
The next thing you can do, if you really need to have multiple photos on a page, is to reduce the size of each graphic. A graphic file consists of pixels and represents size in bytes. The more bytes in a graphic file, the larger the file and the longer it will take to load a page. Most graphic programs allow you to reduce the size of files by compressing them, which is done by removing some of the details of the graphics or some of the pixels. With practice, you can take enough detail from a file so that detail loss is virtually undetectable by the human eye, yet at the same time reduce a 64,000-byte graphic file to a 32,000-byte graphic file and reduce time Load in half. If you have enough photos on the page this can make a big difference.
Another thing you can do is to use graphic files, called gif files, which can be loaded in such a way that the photo is displayed gradually on the screen as it is loaded so that the visitor can see that there will be a photo there after the File is loaded.
One thing that web designers sometimes forget is that some browsers do not display graphic files correctly or at all. To allow this possibility as a web designer, when encoding your HTML, you must include what is called alternative text in your image source tag so that if the visitor can not see the graphics they can see that something is supposed to be there.
Another thing you should do is make sure your photos are properly framed on the page. If you want borders around your photos, be sure to include a borders = 1 tag in the source file of the image.
Finally, be sure to include height and width options in the source tags of the image. What it does is to make it so that the HTML code provides an exact area for the photo even before it is uploaded. This helps speed up the loading time because of how the memory is managed.
By following the above tips and procedures you can make the viewing experience of your visitor to your website be the most enjoyable.
0 comments:
Post a Comment