What could be the reason if some of the images on my web page are
Why is the BASE HREF tag given ?
What should be done if there are Missing links in the web page ?
What is "404 or Document Not Found" Error and how can it be
removed from web site ?
What should be the main/starting file name of a website ?
How to organize files / directories of your website ?
Why is the website not showing updated pages
even after updations have been done?
What should be the ideal size of the Photographs, HTML or PDF page?
Which format should I prefer : DOC or PDF ?
For more details on tips to
update your website
What could be the reason if some of the images on my
webpage are not displayed?
Ans. : It
may be due to the image path problem/ case sensitivity of file names.
Check the image source path of all the images, path should be relative to the
HTML page. Path should not be as "c:\myweb\xyz.jpg"
's path and it would not work on the web server.
Secondly, you must use the same case letters (capital or
small) while defining the links and image source as the file names exist. Some
of the web servers are UNIX based and they are case sensitive. It is better to
avoid the use of capital letters while saving the files and defining the links /
image source. Also it is advisable to use small letters to avoid such
Please note that UNIX server is case sensitive,
therefore it has to be ensured that the all file name/links are in lower case.
Why is the BASE HREF tag given ?
the URL of your web site is "xyz.nic.in" hosted as virtual software server (i.e.
more then one sites hosted on a single IP address) then it must have following
tag inside the header of the main page
Please ensure that this tag should not be
missing from the main page i.e. "welcome.html" or "index.html". If it is missing
from the page then it would not work properly.
Note :If you are
using Java Script on the first page then this tag must exist before the Java
NOTE : Sites hosted on NT
server does not require this tag.
What should be done if there are Missing links in the
web page ?
Ans : If links are missing from
your web site and the error is displayed as "Document not found", it may be due
to following reasons -
The document is physically missing from the server.
The link defined by you is having local machine's path like
inconsistency in the file names i.e. you have specified the link in small letter
and the file exists in capital letters or vice versa.
What is "404 or Document Not Found" Error and how
can it be removed from web site ?
Ans : When a person visits
the web page then browser sends the requests to the web server for the required
files (html page/images/other objects). In response to request server sends the
requested files to the visitor's browser. When the web server is unable to
fulfill the request then it causes "404 - Document Not Found Errors". The
possible reasons for the error are :-
The visitor may have miswritten the URL, which does not exist on the web server.
Requested file does not exist on the web server at all.
Requested file exist in different folder of your website and the link/path has
given from some other folder.
Case sensitivity of the UNIX web server i.e. UNIX server treats "capital" and
"small" letters as separate one.
Some time it happens that the visitor does not observe this error but the web
server gets this error recorded in Log file. This may be due to the background
image and bullets used on the web page which do not cause major attention of the
Similarly, it may be due to the Java Script you are using for Mouse Over
effects/preload images etc. where you have given wrong path for the images.
Detailed information on above mentioned reasons of "404 - Document
Not Found" errors : -
1. Images (gif, jpg) : It may be due to the
following reasons :-
The image is physically missing from the server, i.e. by mistake you forgot to
put it in the specified directory or kept in some other directory within your
Please note one more thing if that the source is used as "images/photo.jpg" and
if this file is uploaded in the root directory of your web site then also it
would not be reflected on the web site.
Some times it happens that image is lying in different folder and the source is
defined from some other folder
e.g. : <img src="/images/photo.jpg"> but the file "photo.jpg"
is kept in root or some other folder. In this case it would not be displayed by
the browser. <
If your web site is hosted on UNIX/Solaris server then this operating system is
"case sensitive" i.e. it treats the "capital" and "small" letters as separate
e.g.1: The file name "Photo.jpg" and "photo.jpg" both are to
be treated as separate files, since the first letter of "Photo.jpg" is capital
and whereas the first letter of "photo.jpg" is small.
e.g.2 : The file name "photo.jpg" and "photo.JPG" are also
treated as separate files.
If you have used Image source in your web page as -
and uploaded the image with file name "Photo.jpg"or vice versa. In this case
even after uploading the image it would not reflect on the web site.
2. Missing Pages/Documents : When we click on some
link and the result is a "Document Not Found" error on browser screen, It may be
due to :-
The Page/Document is actually missing from the server, i.e. by mistake you
forgot to put it in the specified directory within your website.
If your web site is hosted on UNIX/Solaris server then this
operating system is "case sensitive" i.e. it treats the "capital" and "small"
letters as separate ones.
e.g.1: The file name "Org.htm" and "org.htm" both are to be
treated as separate files, since the first letter of "Photo.jpg" is capital and
whereas the first letter of "photo.jpg" is small. e.g.2 : The
file name "org.htm" and "photo.HTM" are also treated as separate files.
If you have used link in your web page as -
and uploaded the page with file name "Org.htm"or vice versa. In this case even
after uploading the page it would not reflect on the web site.
3. File Extensions :
The file extensions ".htm"
and ".html" are also treated as separate files like "welcome.htm" and
"welcome.html". In this case even if the site is hosted on "Windows NT server"
it would be treated as separate files.
4. Background/Bullet Image :
View the source code of
the page and check the image path of the background/bullets. If there is
incorrect path then correct it and upload the files again.
5. Errors due to Java Scripts :
If you are using Java script for preload
images/mouse over effects then also check the followings within your Java Script
Image paths in the script.
Case letters of file names
6. Position of "base href" tag :
It must be within
<head> and </head> tags. But if you are using Java Scripts within <head> and
</head> then be careful that "base href" tag must come before your Java Script
What should be the main/starting file name of a
Ans : By convention server
picks up "welcome.html" as the default file when a person visits any website and
types the URL in his browser.
e.g. lets assume
that a person enters the URL
"http://abc.nic.in" then the server
picks up the "welcome.html" file from the root directory of the specified
website. If this file does not exists then server gives the Error Message.
Sometimes you must have updated the main file
and sent us for updation but when you check the website it does not reflect the
updations done. It may be due to the updated file name.
e.g. let us take an example of
"http://abc.nic.in". The main file name is "welcome.html" but you have
updated a file name as "welabc.htm" and put it on server in the root directory
of the given website. In this case when you browse the website
"http://abc.nic.in" it would not show you the updated page.
keep the file name of the very first file as
"welcome.html" and do not forget to hyperlink the "Home" icon to "welcome.html"
How to organize files/directories of your website ?
Ans : It is advised to
keep html pages, images and executable scripts (like ASP) in separate folders.
You have to take care of it while developing the website.
If your website is having separate modules and
each module is having its separate files then it is advised to keep
relevant files for each module in separate folders.
Why is the website not showing updated pages even after updations
have been done ?
Ans : It may be due to the following reasons
Browser Cache : The page is appearing from your browser cache not from
the web server. Remove the "Temp. internet files or Cache files" from your
browser and then reload the page. If you are using "PROXY" server then in this
case you have to remove cache files of PROXY also.
File name of Main/starting page : Check the file name of
main page. It should be "welcome.html" or "index.html" in case your website
is hosted on UNIX based web server and "default.htm" or "welcome.html" or
"index.html" in case your web site is hosted on Windows NT/ 2000 web server. For
more details read FAQ no. 6.
Case Letters : Since the UNIX server is case sensitive, it treats capital
and small letters as
separate. Therefore make sure that the case (upper or lower) in the file names
is always uniform.
Please note that even if only the first letter is capital, it shall not be
acceptable by the UNIX server. For more details click.
What should be the ideal size of the Photographs, HTML or PDF page ?
Ans : For
photograph in JPG format : It should not exceed 20 K
HTML page : Main page must not exceed
40-50 K and rest of the pages should not exceed 100 K including the size
of all images used on this page.
PDF : It must be less than 200 K.
Which format should I prefer : DOC or PDF ?
Ans : When
you are keeping forms or some other documents for downloading always prefer
PDF format since it is safe and can not be modified by the user using Acrobat
reader unlike the DOC file. A DOC file faces chances of virus infection also,
which is not the case with PDF documents.