5 WebDesigner Tips You Should Know
Here are collected 5 really good tips for webdesigner on how to design a perfectly website:
1. Protecting the content of include files
A common practice in web design is to put repeated content (such as headers, footers, functions, etc) into a separate file then include it in all your webpages. However, using an extension such as .txt or .inc means if someone guesses the filename, they can view the contents of your file. This is particularly dangerous if you have sensitive info such as passwords or php code you don’t want publically available. A way to protect this is to use the .php or .asp extension (depending on your server). If anyone views the page directly, all your code is executed and not visible to the end user.
2. Avoid spaces in your URLs
Technically, a URL cannot have a space in it. Most modern browsers compensate by replacing any spaces with %20 and the page loads fine. However, there are two good reasons not to use spaces in your filenames or folders. Obviously, if many browsers can view them, it follows that there are others, mostly older ones, that don’t (I’m not aware of exact figures but if anyone does know, I’d love to hear from you). Why alienate a portion of your visitors for no good reason? Secondly and more significantly, some web crawlers are unable to index pages with spaces in the URL meaning the page won’t be listed in some search engines. You have to remember that most crawlers have the functionality of a primitive browser. To get around this, use the simple method of using underscores “_” or hyphens “-” in your URLs instead of spaces.
3. Underscores versus hypens in your URLs
There are various arguments on whether to use underscores “_” or hypens “-” as dividers in your URLs – most of them aesthetic. However, to my way of thinking, one fact decides the whole argument. Google sees hyphens as dividers, it ignores underscores. This means it’s more likely to extract keywords out of your domain, directories and filenames if you use hyphens to separate your keywords, and hence your webpage will rank higher when searching for those keywords.
4. Test your webpage in different browsers
While most people use Internet Explorer, a sizable portion of your users will use other browsers such as Firefox or Safari. Therefore it’s prudent to check your web design on different browsers to ensure all users view the webpage as it’s intended.
- Browsershots is the most comprehensive service, offering multiple versions of browsers for various operating systems.
- BrowserCamp focuses on Mac browsers.
- BrowserCam offers a 24 hour free trial period.
- Litmus cover Windows browsers.
5. Create a Clean Design
Every User hate it when he/she acces to your site and dont find what he wan’t or its difficult on how to get it so your design need to be clean and you need a easy to use navigation .
Originally posted 2012-05-21 12:00:24.