herbal supplement for high blood pressure

just another regularban.info web blog

MEMBERS:

Your CSS Code is Slowing Down Your Website - How To Optimize for Speed

Did you know that your css code could be slowing down your website? Did you also know that there is a free solution out there that can help you optimize or reformat your css code for speed and readability? This article is going to explain the benefits of optimizing your css code and the reasons why all web designers should be doing it. First we need to take into account the 2 reasons why you would want to reformat your css: readability and optimization.

Readability

Having nicely formatted css that easily readable is very helpful when you are developing a site. Most of us (me included) can get pretty sloppy when in a hurry to develop code, and a formatter can really help out to make it more readable.

On development teams where both Macs and PCs are used, sometimes line breaks are not read correctly across platforms and your css can end up all on one line. A formatter can help get your code looking pretty again.

Optimization

The opposite of readability is optimization. One problem with CSS is that it can get pretty file-size heavy when designing with it - especially on complex layouts. Optimizing your CSS will strip out all unnecessary characters and leave your CSS lean and mean.

Optimizing css is great to do once you've finished your site and don't plan to work on the design very much anymore.

The css formatter is a great tool because it can do both! You can format for readability while you are designing, optimize when you go live, and reformat it for readability if you ever need to work on it again. It's really a 'win win' thing to do.

Do you want to speed up your website? Format your css for free using the CSS Formatter and Optimizer...

DEVTRENCH is a Web Development Blog written for web designers and programmers who need need up to date tips and tricks on how to create great websites.

 


Using Functions

Functions are used to perform a well defined task that is normally repeated at various places within a web site, web application, or other software application. The function sometimes needs certain information before performing its task, and sometimes returns a value to the calling page or program.

An example of how to use a simple function in PHP:

 function showMessage() {

echo "{$_SESSION["message"]}"; }

The above example shows a very simple function that displays the contents of a session variable called 'message'. The idea being that while a user is using a web site, etc, various messages are generated and stored in the 'message' session variable. Whenever the showMessage function is called, the contents of the session variable are displayed. So, for example, when the user logs on, you could display a message saying that they have done so. Likewise, when they log off, a different message could be displayed.

Calling a function

To call the showMessage function, you would just need to include the line:

showMessage()

in the web page (wrapped in php tags to distinguish it from normall HTML).

Passing values to a function

Often, a function requires one or more input values in order to perform its task. For example, take the following example that takes two numbers as input, and adds them together. The result is then returned to the calling web page or program.

function addNumbers($number1,$number2) {

$answer = $number1 + $number2;

return $answer; }

In the calling program we would have something similar to the following:

$number1 = "5";
$number2 = "6";
$sumOfNumbers = addNumbers($number1,$number2);
echo "$sumOfNumbers";

Obviously, in a real program you would not have the numbers hardcoded like this, but they would be obtained from user input or by some other means. Notice also that although the name of the returned variable is $answer, the calling program makes no reference to that. We could, if we wanted to, change the calling program to:

$answer = addNumbers($number1,$number2);
echo "$answer";

which might make things slightly easier to understand.

About the Author: John Dixon is a web developer working for My Health Questions Matter, a company that helps users of the health service to ask the right questions when discussing their medical condition with health professionals. John is also interested in computer history, and maintains http://www.computernostalgia.net, a site dedicated to the history of the computer. John also provides web development services to large and small clients via his own company John Dixon Technology Limited.

 


Copywriting as a Part of Web Development

A part of web development is copywriting. Excellent copy means it has to be appealing to both readers and to search engines. This combination will help websites to rank highly. A problem occurs when there are space constraints to a site, page layout requirements or other issues.

Because appealing to both readers and search engines is so important, you don't want to sacrifice one for the other. Adding a big block of copy to the middle of a page may not be the best answer, however, if a page needs content, adding a couple of sentences to the bottom of each section is a good option. Your copy will still be readable and the additional content will appeal to the search engines.

There are some things to remember when writing content for a website.

  • Web users are active. One click and they have left your site. If they don't see a reason to stay, they won't. There is a 10 - 15 second window available to capture a visitor's attention.
  • The longer the text is, the less likely they are to read it. With long text, they will skim it, if they bother to read it at all.
  • Web users don't believe in hype. If you want a web user to believe you and to believe in you, you must back up your claims.

Four questions must be answered on each page:

  • What am I doing here?
  • How do I do it?
  • What's in it for me?
  • Where can I go, next?

If your design and navigation isn't obvious, then you need to explain it in the copy. Most visitors will not take the time to figure this information out. If a first time visitor cannot find their way around your site, they will likely never come back.

Unless your visitors are expecting to read something on your page, don't expect that they will read more than one or two lines of copy.

Understanding your copy is as important as length. Don't make the copy so complicated that it is difficult to comprehend or make it so the customer will have to think about it because they won't.

What this means is you want to convey one key idea in just one or two lines. Don't try to add a third line because if you say too much, then even the first idea won't penetrate. If your site needs more content, break it down into sections that are one or two paragraphs each. Say what you want to say in the first sentence and then expand the thought into the paragraph. Use meaningful headers. Most people will only scan the headers to the paragraphs and not even bother with the copy on the page, unless it is something that appeal to them. It is better to write only one or two lines with links to another page with the longer copy.

Even when users are expecting to find text heavy content, don't expect they will take the time to read all of it. Longer copy doesn't have to be as abrupt as shorter text, but it needs to be as easy to read.

Make your copy clear, but not boring. Lively writing with an unassuming voice is best. Boring writing will turn your reader off and nothing you say at that point will make it through.

Karen Vertigan Pope writes for Ciniva Systems, an award winning Virginia web design company. Ciniva specializes in web design and SEO. Ms. Vertigan Pope is the Project Support Manager of Ciniva Systems.

 


Pages 
* About

Archives
    * February 2008
    * January 2008

Categories:
* Uncategorized

Last Updated:

regularban.info is proudly powered by WordPress MU running on  regularban.info.
Create a new blog and join in the fun!
Entries (RSS) and Comments (RSS).