CSS font stacks, developer FAQs & web standards

Your banner ad here

WestNIC provides reliable web hosting services

Top Canadian Hotels no booking fees from Victoria BC to Nova Scotia

Site navigation below

This FAQ is part of the Code Style Help and FAQ section. Join our premium content service for full access all FAQ answers.

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.

Actions: Follow-up, clarify or correct this answer. Submit a new question.

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 omitted

Sign up for premium content now Access all premium content for $50: sign-up now.
How can I display something different every day?

Actions: Follow-up, clarify or correct this answer. Submit a new question.

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 omitted

Sign up for premium content now Access all premium content for $50: sign-up now.
How can I stop users going back to a login page?

Actions: Follow-up, clarify or correct this answer. Submit a new question.

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 omitted

Sign up for premium content now Access all premium content for $50: sign-up now.
How can I redirect a browser when Javascript is disabled?

Actions: Follow-up, clarify or correct this answer. Submit a new question.

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.

Actions: Follow-up, clarify or correct this answer. Submit a new question.

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.

Actions: Follow-up, clarify or correct this answer. Submit a new question.

Add this page to your chosen social bookmarking service

Style warning, please read

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