Posts Tagged ‘common’

Web Designing-Take advantage of the cascade

Wednesday, July 16th, 2008

The cascade lets you use multiple rules to specify the properties for an element. You can either redefine the same property or define additional properties. Let’s say you have the following markup:

1. <p class=”update”>Update: Lorem ipsum dolor set</p>

In the CSS, you can use separate rules to specify the properties that are common to all p elements and those that are specific to p elements with class=”update”:

1. p {
2. margin:1em 0;
3. font-size:1em;
4. color:#333;
5. }
6. .update {
7. font-weight:bold;
8. color:#600;
9. }

The two rules will be combined for p elements with class=”update”. Since a class selector is more specific than a type selector, the properties defined in the second rule will be used when a conflict occurs, as for color in this case.

More info on how the specificity of CSS rules is calculated can be found in Calculating a selector’s specificity in the CSS 2.1 specification.

Web Design-Specify a unit unless the value is 0

Wednesday, July 16th, 2008

Not specifying a unit for length values is a very common mistake among CSS beginners. In HTML you can get away with that, but in CSS all length values must have a unit. There are two exceptions: line-height and 0 (zero) values. Note that the value must be immediately followed by the unit – do not insert a space between them.

There is no need to specify a unit for 0 (zero) values because zero pixels equals zero centimeters equals zero of any other length unit. Despite this it’s very common to see something like padding:0px where padding:0 would do.

While there’s nothing wrong with specifying a unit when the value is 0, it’s a waste of space and – at least to me – looks untidy.

Search Engine Optimization-Keyword Search

Tuesday, July 15th, 2008

Most search engines handle words and simple phrases.  In its simplest form, text search looks for pages with lots of occurrences of each of the words in a query, stopwords aside.  The more common a word is on a page, compared with its frequency in the overall language, the more likely that page will appear among the search results.  Hitting all the words in a query is a lot better than missing some.

Search engines also make some efforts to “understand” what is meant by the query words.  For example, most search engines now offer optional spelling correction.  And increasingly they search not just on the words and phrases actually entered, but the also use stemming to search for alternate forms of the words (e.g., speak, speaker, speaking, spoke).  Teoma-based engines are also offering refinement by category, ala the now-defunct Northern Light.  However, Excite-like concept search has otherwise not made a comeback yet, since the concept categories are too unstable.

When ranking results, search engines give special weight to keywords that appear:

* High up on the page
* In headings
* In BOLDFACE (at least in Inktomi)
* In the URL
* In the title (important)
* In the description
* In the ALT tags for graphics.
* In the generic keywords metatags (only for Inktomi, and only a little bit even for them)
* In the link text for inbound links.

More weight is put on the factors that the site owner would find it awkward to fake, such as inbound link text, page title (which shows up on the SERP — Search Engine Results Page), and description.

There’s a lot of information about meta keywords and descriptions - do they matter or not?

Tuesday, July 15th, 2008

It’s a best practice. One of the most common problems is with Title tags when companies create web sites and put the exact same information or nothing at all. Title tags are the first and most important indication of what the web page is about. Title tags should be a short summary of the page with important keywords to the left.

The meta description tags are used in the search results. It is important to use them if you want some degree of influence over what search engines display in the search results of when your web page ranks for a particular keyword query.

Common Errors in PHP

Saturday, June 28th, 2008

‘Warning: Cannot modify header information - headers already sent by (output started at filename line no __) ‘

If you run a PHP document get the above error message, it means that an error has occured in your php document. This takes place if there are any executable statements like echo before the set cookie or session variable. Try to find the statement and remove it and then run the same program.

From Registering A Domain To Getting It Online

Thursday, June 26th, 2008

Before getting a web site on line you need to have a domain name. These are the familiar web addresses such as mywebsite.com that most browsers use to find a particular web site. Domain names, in fact, are pointers to a particular IP address and we use them because they are easier to remember than a series of numbers.

All websites have an IP address in the form 123.456.78.9. The domain name system translates these numbers into names such as mywebsite.com. All domain names are registered in a central registry maintained by InterNIC, a subsidiary of ICANN — the organization which certifies domain name registrars. Domain names are filtered through Domain Name Servers (DNS) which link IP addresses with domain names. Each web site usually has a primary and a secondary DNS – duplicates that increase reliability.

The first step in registering a domain name is to choose it. The name can be almost anything you want, but to be most effective it should reflect the nature of your website. If you are selling watches, for example, it helps to have a domain name that has some reference to watches – A1-Watches.com for example.

The rules for domain names are simple – only letters, numbers or hyphens are allowed. Other than that, a domain name is limited to 70 characters, but you are advised to keep it as short as possible. Domain names can be upper or lower case – case is ignored by DNS but you can use a combination to make the name more recognizable. MyWebSite.com is easier to read than mywebsite.com, but both are identical to the DNS.

There are several extensions available. The most common is .com — it has even entered common vocabulary as a way to express Internet activity – (I own a dot com business). Other extensions include .biz (for commercial sites), .org (for non-commercial organisations), .net (for organisations involved in Internet infrastructure) and .name (for personal names). There are also extensions with more specialized uses such as .museum, .aero, and .coop and are used exclusively by members of certain organizations. In addition to these common extensions, there can also be a country code extension such as .us (United States) or .de (Germany). The rules for using country extensions vary, so you need to check with your registrar to see if they are available to you.

All domains must be registered with a registrar that has been certified by ICANN (Internet Corporation for Assigned Names and Numbers). There are hundreds of registrars and their prices vary considerably. The full list of registrars is available at the InterNIC website (http://www.internic.net/regist.html). Although registrars are closely regulated, they are permitted to offer their services through third parties, so many web hosts offer a domain name registration service even if they are not a registrar. The price of a domain name will usually be higher when dealing with these third-party services.

Domain names are usually registered for a minimum of one year, although you are permitted to buy up to a 10-year registration contract. Usually the longer the registration contract, the lower the price, so if you are sure you will be on the web for a considerable length of time you can benefit from a longer registration period. Most registrars also offer a discount on bulk purchases. If you own a number of domain names you can save money by transferring them all to the same registrar.

You have selected a domain name, registered it and signed up with a web host. What’s next? Your web host has to provide you with details about how to get your site up and running. This information includes passwords to get into your account, paths to directories where your files should be uploaded, and most importantly, what your domain name servers are.

Domain name servers (DNS) provide the link between your domain name (mywebsite.com) and your Internet Protocol (IP) address. The IP address is a series of numbers like this: 123.456.78.9. Every web server has a unique IP address which, in the case of dedicated servers hosting a single domain, is equivalent to the domain name. A site hosted on a dedicated server will respond to either 123.456.78.9 or mywebsite.com by serving the requested webpage.

Most websites, though, are hosted on shared servers. This means that one server is home to many different websites, but they each have the same IP address. If you type in a shared IP address you will get an error page or will be redirected to the web hosting company’s web site. So DNS is necessary for websites on shared servers. Domain names are the only way to request these websites – they cannot be requested by IP address.
Configuring DNS

When you first purchase a domain name, it will be registered on the DNS of the registrar. Until you arrange for a web host, the registrar company will usually redirect requests for your domain name to an error page or an ‘Under Construction’ page. Note that there is no time limit between buying a domain name and finding a host. Some people purchase domain names without ever intending to build a website on them. Most people, though, buy a domain name with the intention of using it. To do that, you need to open an account with a web host and prepare to transfer your site to their server. Part of the process of preparing your site for publication on the World Wide Web is to alert your domain name registrar of the DNS of your new server.

A DNS configuration looks something like this:

Primary Name Server: NSA.NEWDAYDNS.COM (204.50.14.2)
Secondary Name Server: NSB.NEWDAYDNS.COM (204.50.22.2)

This information is available from your hosting company either in their informational package that they email to you, or on their website. If you can’t find the DNS it’s best to contact your web host and ask for it. Once you have the DNS information you can usually enter it into your account on the website of your registrar. If you have purchased your domain name from the hosting company, they will usually make the necessary changes for you when they set up your account.

When the DNS is registered or modified (when changing web hosts) it can take up to 24 hours for your site to be accessible from everywhere in the world. This is because domain names are registered in a distributed data base that is maintained on thousands of computers around the world. Each computer has a small part of the database in cache, and if they receive a request for an unknown domain that request has to be forwarded to another computer until the information is found.

After you have opened an account with a web host and set the DNS you can start uploading your web pages. The most common way to do this is to use FTP (File Transfer Protocol) software but there are also some other options.

FTP is an Internet Protocol (like HTTP) that allows data files to be transferred from one computer to another. Your web host will provide information about how to connect to your site using FTP. Usually you use FTP software such as WS_FTP or FileZilla to connect to the FTP server on your website. The address of the FTP server is usually ftp.mywebsite.com (where mywebsite.com is the domain name).

Your host will also tell you the location where files should be uploaded. Your account will probably have two main folders in the root directory – public_html and www. Your web pages should be uploaded to the public_html folder. The www folder is a mirror folder which allows people to find your site by using either www.mysite.com or mysite.com.

You may have to adjust a few settings in your FTP software to upload files correctly. For example, if you are using a firewall on your computer you should set the transfer method to passive. If you are using a proxy you will have to adjust the proxy settings.

Files can be sent or received in either binary or ASCII mode. If they are transferred using the incorrect mode they may end up with errors on completion of the transfer. Your FTP software may try to determine which mode to use by examining the contents of the files, or you may have to manually specify the transfer mode. Files that should be sent in ASCII mode include HTML (and variants like HTM, SHTML, DHTML, etc.) TXT, CGI, C, ASP, JS etc. Basically, any file that can be viewed in a text editor should be transferred in ASCII mode. Binary mode, on the other hand, is used to transfer everything else – graphics, compiled programs, and media files.

Using the FTP software, make a connection to your web server. Browse to the folder where you want to upload files (usually by clicking on the folder icons) and then find the local files you wish to upload. Whole directories or individual files may be uploaded.

You can name most of the pages of your website anything you like, but there is one essential file in each directory – index.html or a variant (index.htm, index.shtml etc). This means that your home page has to use this name. The home page can be viewed by typing http://mywebsite.com or http://mywebsite.com/index.htm. In the first case, if there is no file named index.htm the contents of your root directory will be shown. Without an index file in each directory, anybody who browses to that directory can see all the files there. This presents an enormous security risk as well as exposing private information to public view.

FTP is the most common way to upload files to your website but is by no means the only way. Some web authoring packages have built in transfer methods to automatically upload your entire site or individual pages. Microsoft FrontPage is an example of this type of transfer method. In order to take advantage of it you need to have FrontPage extensions installed on your website. You can request this feature from your web host. Other authoring packages have built-in FTP software so that you can build your site and upload with one familiar interface.

You can also build sites online. Some web hosts give you access to browser controlled software that allows you to lay out web pages. Once you are finished the page is automatically saved to the proper location on your server. This type of web builder is usually available through the control panel of your hosting account.

Bandwidth

Thursday, June 26th, 2008

Bandwidth is a term that has several different meanings depending on the context. When talking about bandwidth in terms of Web Hosting it refers to the amount of data that transfers into and out of your web hosting account. Incoming data can include requests for web pages, email, FTP requests, and FTP uploads, while outgoing data includes file transfers, web pages, and email. Each hosting account is allocated a certain amount of bandwidth per month. Common figures for bandwidth range from 3 GB for small personal sites up to 200 GB for large business systems.

How much bandwidth do you need? This depends on the amount of traffic your website receives as well as the content. Web pages made up of text and a few pictures are very small in size but if you get thousands of visitors each day you may need a lot of bandwidth. On the other hand website content consisting of downloadable files such as software, music or video is much larger in size, so even if your traffic is fairly low you may need extra bandwidth.

The best way to calculate the amount of bandwidth you need is to calculate the size of your downloadable content and multiply by the number of visitors you receive each month. Add to that the number of emails sent and received and other content such as FTP uploads. The figure you come up with should be pretty accurate because it is unlikely that every visitor to your site is going to download every file or view every page. This will give you a bit of margin to play with.

As your web site grows and as you receive more traffic you may have to increase your bandwidth allotment accordingly. It is better to plan ahead and arrange with your web host for a larger hosting package rather than wait until you go over your limit. Check with your host to see what their policy is in regards to exceeding your bandwidth. Some will allow you to go over by a certain amount while others will shut down your site and demand that you upgrade your account before resuming service. It is always best to keep track of how much bandwidth you are using and anticipate when you need to upgrade.

If you feel that you have sufficient bandwidth and would prefer not to upgrade you may be able to ‘throttle’ traffic if you are approaching your monthly limit. Some hosts offer this service as a way to limit incoming requests or to exclude requests once a certain number has been reached.

There are several throttling options. You can limit the number of incoming requests by specifying an idle time between requests. This causes incoming requests to be delayed by a specified amount of time if too many are arriving at once. Other options are to impose a limit on data transfer within a certain time period or to limit the number of requests for a certain file. The speed of transfers can also be capped at a certain level. Throttling may not be a good idea if you depend on web traffic for your business. If your pages are slow to load or if users can’t access files they are looking for they may give up and move on to another site. If you have a lot of free content, though, throttling can be useful for keeping your hosting budget within a certain amount.

The 20 Most Common Mistakes in Website Design

Saturday, June 21st, 2008

These twenty mistakes are the difference between a very poor website and a very good website. You may know some of these mistakes already, but if you have avoided or corrected all of them you are almost certain to keep visitors coming in and coming back.

This list is especially important for new designers, amateurs or the experienced but sloppy who need a list to work from for a website spot check.

1. Bad Layout and Design - Yes, there are some ugly, unbalanced or overloaded webpages out there. Make your page a pleasant viewing experience. If you are not sure about the looks of you design, then let some people see a screenshot of your webpage.

2. Non-Standard Links - Why confuse your visitors with links that are different colors or fonts that vary from page to page. Don’t frustrate your visitors, it shouldn’t be a guessing game.

3. Iffy Navigation - Take it easy on the moving objects, trailing images and other stuff you see on kids websites. It’s just not that entertaining and it can get in the way and distract your visitors. Keep it stable easy to find and read.

4. Slow Pages - Who wants to watch your dumb load meter rack up the percents of loaded kilobytes or megabytes? Keep your pages lean and fast, under 50k if possible. Do not bore your visitors.

5. Wild and Crazy Color Schemes - Some pages look idiotic with overly bright colors, maybe even revolting. Your texts must be easy to read, not a sensational nightmare.

6. Spelling and Grammar - Errors in spelling and grammar make your page look amateurish or childish - always spell check.

7. Page Text - Keep your pages easy to read. Break texts into paragraphs or blocks. People scan pages more than they read them, make it easy on them.

8. Font Style and Size - Choose easy to read fonts and use the right size - not micro reading or headlines on every line.

9. Dumb, Out of Control Music - select background music that fits the subject matter and make sure it can be turned off easily.

10. Under Construction - Avoid having a visitor coming to you closed or not yet opened website. What’s the point? Give them a single page of content with a notice as to when the whole site will be available.

11. Untested Web Site - Always look at your website in multiple browsers and make changes accordingly before uploading your site to the web.

12. Sloppy Texts - Make sure all the right words are in all the right places - “Content is King” for readers and search engines.

13. Old Content - Updating your website is important, visitors need to see something new once in a while.

14. Too Many Clicks - Why should a visitor have to jump through page after page to find anything on your website. Make sure everything is only 3 clicks or less from the homepage.

15. No Contact Information - Keep your contact information easy to find and easy to read.

16. Free Hosting Service - When you see a webpage that has a name so long that it has at least one period in the middle of it you know it’s a free hosting situation. Everyone knows the limitations of free hosts and the limitations that they place on a webpage. Don’t use a free web host if you want to be taken seriously.

17. Advertising - Do not overload you page with ads, especially the big grotesque banners. Well placed, well designed ads are okay if you don’t overload the page.

18. Bad Images - Don’t make a visitor suffer missing graphics file or badly shaped or cropped images. Optimize your images and use the best heights and widths, and keep your files in the best formats - jpeg for Photographs and gif for artwork.

19. Website Best Viewed - Don’t say this on your website, it looks like a beginner’s website.

20. No Prices - If you sell something don’t waste your time hoping you will get email inquiries on your prices - just include a price with the item description.

That should do it. Follow these directions to correct the 20 most common mistakes in website design to make sure your webpage is in good shape.

Are You Scaring Away Visitors to Your Website?

Saturday, June 21st, 2008

For most small businesses, the goal of having a web site is to attract customers, gather leads, and convert sales. But is that what YOUR web site is doing? When you get it right, web visitors have a valuable experience and clearly understand how your product or service fulfills their needs. Get it wrong and you could be sending web traffic and potential business right to your competitor’s door! Here are some common web site mistakes that can scare away visitors and hurt your bottom line:

- Too many choices – When you give your visitors too many options, it can become overwhelming, making them less likely to make any decision at all. All options are not equally important, so be careful to present your information in an organized, logical way that is easy to understand.

Editor’s Note – Please read this article I had written on another website.

- Non-relevant web site content – Be sure that the content on your site is focused on delivering your main marketing message. You are the expert on your business, so you already know what information customers need in order to make a decision. Extra information that doesn’t promote or support your message doesn’t belong on your web site.

- Unprofessional web design – The way your web site looks and functions speaks volumes about your business, even if it is unintentional. If your web site has poor layout, broken or missing links, outdated information, or looks unprofessional, your visitors will have a negative impression of your company, regardless of how great your business may be.

- Red flags – Most web users today have a healthy skepticism when they visit web sites, so make sure you show them immediately that your company is legitimate. Provide detailed contact information that includes your physical mailing address, phone number, contact names, and email addresses so visitors know your business can be trusted.

- Asking for too much information – When visitors want to make a purchase, sign up for your mailing list, or request information from your web site, what kind of a form will they be faced with? Make sure you ask only for the information that you absolutely need, and don’t try to gather too much information at once. Instead, keep the form short and simple, and then follow up later to gather any additional customer information that you may need.
Lauren Hobson is the Editor of Biz Talk Newsletter, a free monthly publication designed to provide small businesses and non-profits with tips and techniques to help them make the most of their web sites and marketing efforts without spending a lot of money. Biz Talk is published by Five Sparrows, LLC.