HTML and CSS Reference
In-Depth Information
My Files Are Being Displayed Incorrectly
Suppose you have an HTML file or a file in some multimedia format that's displayed
correctly or links just fine on your local system. After you upload the file to the server
and try to view it, the browser gives you gobbledygook. For example, it displays the
HTML code itself instead of the HTML file, or it displays an image or multimedia file
as text.
This problem can happen in two cases. The first is that you're not using the right file
extensions for your files. Make sure that you're using one of the correct file extensions
with the correct uppercase and lowercase.
The second case is that your server is not properly configured to handle your files. If all
your HTML files have extensions of .htm , for example, your server might not understand
that .htm is an HTML file. (Most modern servers do, but some older ones don't.) Or you
might be using a newer form of media that your server doesn't understand. In either case,
your server might be using some default content type for your files (usually
text/plain ), which your browser probably can't handle. This can happen with server-
side scripts, too. If you put up .php files on a server that doesn't support PHP, the server
will often send the scripts to the browser as plain text.
To fix this problem, you'll have to configure your server to handle the file extensions for
the correct media. If you're working with someone else's server, you'll have to contact
your webmaster and have him set up the server correctly. Your webmaster will need two
types of information: the file extensions you're using and the content type you want him
to return.
Registering and Advertising Your
Web Pages
To get people to visit your website, you need to promote it. The more visible your site,
the more hits it will attract.
20
A hit is a visit to your website. Be aware that although your site may get, say, 50 hits in a
day, that doesn't necessarily mean that it was visited by 50 different people. It's just a
record of the number of times a copy of your web page has been downloaded.
There are many ways to promote your site. You can make sure it's in search engine
indexes, promote your site via social media, put the URL on your business cards, and so
much more. The following sections describe each approach.
 
 
Search WWH ::




Custom Search