World class data recovery software and renowned raid recovery services

WestNIC provides reliable web hosting services

Ahosting.biz reseller hosting, managed dedicated server with 24/7 support

Site navigation below

This FAQ is part of the Code Style Help and FAQ section. Use the help request form below if your question is not answered here, but make sure you are asking the right question first.

Subscribe to this FAQ: RSS news feed

FAQ search

Site design questions

Q: I want to create a Web site but don't know where to start!

A: The first thing to do before you create a Web site is decide why you would do so, what is it for? Once you have decided what the Web site is for, then you can start to plan how you will achieve that objective. As far as possible, break the task down into smaller units so you can tackle them one at a time and plan your first step.

Q: How can I display something different every day?

A: The most common way people include variable content in Web pages is to use Server Side Includes (SSI). Most common Web servers support this feature, though they may handle it slightly differently, so check your server's documentation. These guides for the Apache Web server give an outline of the sort of features that other servers may also support...

Premium Content: Follow this link for subscription information More details available to subscribers:
How can I display something different every day?

Q: How can I stop users going back to a login page?

A: You should be very wary of interfering with the standard functionality of the browser's Back button, it is a greatly under-estimated feature that often acts as an escape route when users get lost or confused about what is happening on a Web site. Apart from providing a "panic" button, users may have very good reasons for wanting to go back; your site may not be responding as they would expect it to, the login or other transaction may appear to have failed.

Premium Content: Follow this link for subscription information More details available to subscribers:
How can I stop users going back to a login page?

Q: How can I redirect a browser when Javascript is disabled?

A: The most reliable way to ensure client redirection is to use server side mechanisms; either configure your Web server directly or use server side scripting to set the HTTP headers.

Premium Content: Follow this link for subscription information More details available to subscribers:
How can I redirect a browser when Javascript is disabled?

Web browser support

Q: Why is it necessary to test my page in different Web browsers?

A: There are a range of Web standards for HTML, CSS and Javascript that will help ensure that your Web pages will work well in the broadest range of Web browsers. The HTML and CSS standards also give some guidelines on the way specific HTML elements and styles should be rendered by Web browsers, but they do not specify the implementation requirements in absolute detail.

There is a principled movement in Web design that HTML should only be used to represent the fundamental content of a Web page, not the way it is displayed, with structural attributes or identifiers in the markup to indicate the meaning and purpose of the content. Cascading Style Sheets are then used to suggest how this so-called semantic markup should be displayed in the browser.

To a some extent the way that browser software vendors implement the visual rendering of Web pages is at their discretion, but over the years common conventions and typical style sheet rendering has tended to converge towards a very similar view. However, some variations exist between the visual rendering in different browsers.

If it is important that the visual design for your Web page looks consistent in a range of Web browsers, you should test it in those browsers and adjust the Cascading Style Sheets as necessary.

Q: How can I disable the print screen button on my Web page?

A: It is never a good idea to try to break the way people's Web browsers or computers work. Even if you could do so, there are many other ways to copy an image from a Web server. If your image is especially valuable and may be at risk of copyright infringement, you should not publish it on your Web site. You may put a version with a feint "Sample" stamp across it, for example, and ask your visitors to accept some form of rights agreement before making the master version available to them.

Help request

Use the form below to submit a help request or general enquiry about the Code Style Web site. Before you write read the guidelines on asking the right questions, and check this page for periodic updates.

Information: Your email address will not be mis-used. If you include your address you may be sent a personal reply, you will not be added to any mailing list unless you request it. Read the site privacy statement for details.

Style warning - please read

Home · CSS · Java · Javascript · HTML · Help · Log