What is CSS?
CSS is a simple file which controls the visual appearance of a Web page without compromising its structure. Using CSS we can control our font size, font color, link color and many other attributes on our web page. This will make our HTML code much more readable and the page size will be reduced.
Why to use it and how to use it properly
If you don't use CSS on your web pages and you have many tables and content on them, chances are that your HTML file size will be quite big. Fact is that we live in a busy world, and people are not will to wait more than 5 seconds web page to load.
From the other side some web developers implement the CSS on wrong way. They write their CSS in HTML code of the page, like this:
<html>
<head>
<title>My Page</title>
<style>
A
{
font-family: Verdana;
font-size:8pt;
color:black;
text-decoration:none
}
</style >
What is wrong with this technique? Well, imagine that you have site with more than 50 pages. One day, you decide that you want to change font color and colors of the links on your site. You will have to edit ALL the pages on your site, and do to that you will need time, because you place your CSS in your web page.
Better way is to save your visual attributes in separate, external CSS file, and to link that file with your page like this:
<html>
<head>
<title>My Page</title>
<link href="myStyle.css" rel="stylesheet" type="text/css">
Using this technique, you can change the look of your site within minutes, regardless of the number of pages, because your visual attributes are saved in ONE external CSS file. Edit that file, and you are done.
Benefits
Which are the benefits of using CSS? List is quite long and I will list here only the most important.
Avoiding standard HTML commands like:
<font color="#0000ff"><font size=2>Product</font></font></font>
will help us to reduce file size, but that is not the only benefit. Using CSS word product in this example will be moved more close on the top of the document. Search engine will pick up more content and less code.
Imagine that you have 3 columns table on your page. When you see the code, you will notice that first come code for your table, and after that it come your content. Positioning your 3 columns using CSS instead of standard inline elements:
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="381" height="150" valign="top" bgcolor="FFEDD4">
My Product
</td>
<td height="150" valign="top" bgcolor="FFEDD4">
When CSS is used, your code might look like this:
<div id="leftcontent">
My Product
</div>
Again your code is much more clear, and your content is moved on the top of your document, making your HTML page search engine friendly, and reducing your file size.
Content is one of the most important factors in Search Engine Optimization, and you will benefit with removing the unnecessary code in your HTML and create search engine friendly web page.
Validate it
Browser war is far behind us. Reality is that most of the people today use Internet Explorer, but you should try to be on safe side and ensure that your CSS code is valid. Not all browsers interpret the CSS on same way. You can validate your CSS here: http://jigsaw.w3.org/css-validator/
About The Author
Zoran Makrevski is founder and CEO of SEO.Goto.gr.
Since 1998 has focused on E-Commerce and attempts to bring more traffic to the customer sites bring him in the SEO industry, and he is running his own company today.
Search Engine Positioning Firm
![]() |
|
![]() |
|
![]() |
|
![]() |
This simple question can take on several different forms, but... Read More
Do you need a web site? Are you considering getting... Read More
One of the things that Internet excels is disseminating information... Read More
If one more business owner tells me their website sucks... Read More
In this example I have used the map of the... Read More
Spend time planning your Web site. Before you design a... Read More
1) Data CaptureOne easy way to collect e-mail addresses and... Read More
When used to describe a web site, the term "sticky"... Read More
Fresh website content for your visitors can be of real... Read More
Launching a new small business website is often a long... Read More
Installment 1Developing State-enabled Applications With PHPWhen a user is browsing... Read More
People like to get immediate responses to requests. Autoresponders are... Read More
If you're fairly new to the Internet scene, you may... Read More
Before you start building your site, ask yourself "WHY?". Why... Read More
Many small businesses have the misconception that their business can... Read More
I had a client say something to me the other... Read More
Cost Effective Advertising. Online selling. Increased geopgraphic range. Wider... Read More
If you are like me you have wanted to build... Read More
80% of your Web site is Maintenance!Once your Web site... Read More
What is SQL? SQL stands for Structured Query Language and... Read More
This is a growing concern amongst many business owners. Does... Read More
RIVERSIDE, CA August 4, 2004 ?- "Historically, small business owners... Read More
It's now easier than ever to take payments on the... Read More
So you want to take a look at a real... Read More
Everyday thousands of new businesses make the leap and take... Read More
A website is the most versatile and cost-effective marketing tool... Read More
Right after the thought, "I need a website," people usually... Read More
Does My Web Site Require A Web Database?If your web... Read More
When most people build a web site, they think one... Read More
There are lots of HTML editors on the market, however,... Read More
You have permission to publish this article electronically, in print,... Read More
You work hard to build traffic to your web page.... Read More
When web content gets discussed on webmaster bulletin boards, the... Read More
Developing a website with content that entices visitors to return... Read More
Designing an E-commerce Web site is not as simple as... Read More
There are hundreds of millions of Web surfers today. Each... Read More
Any new website competing on the internet, needs to take... Read More
Starting a business online is no longer as difficult as... Read More
Your ObjectiveYour small business needs an appealing and professional website... Read More
#5 User Satisfaction: Learn what your visitors and site users... Read More
So you finally decided to invest in a web presence... Read More
Your website conversion rate should concern you. This simply refers... Read More
You've decided to create a website to market your products... Read More
A website provides invaluable advantages for businesses who have one.7... Read More
"Build it and they will come."--Filed of Dreams (1989) If... Read More
Alternate medicine finds its own place in the hearts and... Read More
More and more non-profit organizations are developing websites to help... Read More
You don't believe in astrology but you check your horoscope... Read More
Project Safekids provides webmasters a valuable tool which could save... Read More
What is web accessibility & why is it important?Web accessibility... Read More
Starting and maintaining a business is challenging enough without the... Read More
Huge Mistake #1: Creating a Website with Flash -- Did... Read More
The big thing these days is your ability to capture... Read More
Fantastico is a 3rd-party cPanel add-on and can be purchased... Read More
What is SQL? SQL stands for Structured Query Language and... Read More
Many of site owners still don't realize all advantages of... Read More
The evolution of web development parallels the model of technology... Read More
In this day and age most businesses consider having their... Read More
So you want to have a website. You have gone... Read More
Today it seems everyone is jumping on the entrepreneur bandwagon,... Read More
Web sites are an Ongoing Part of Business.All too many... Read More
"If you build it, they will come"; is an age... Read More
Are you aware that 90% of the websites on the... Read More
There are millions and millions of websites on the Internet.... Read More
If you like the Internet and surfing through the billions... Read More
There was a time not long ago when setting up... Read More
Web Development |