Search This Blog


Advantages of using external CSS

Monday, October 25, 2010

CSS Stands for Cascading Style Sheets. CSS are used to separate the stylist elements of a page such as colour and fonts from the content of the page such as header tags and paragraphs. You can learn CSS from easy tutorials.

Advantages of using CSS in your website:

Full control of page structure
CSS allows you to display your web page according to W3c HTML standards without making any compromise with the actual look of the page.

Google gives value to the web pages that are well organized, though its designers that choose to ignore standards and guidelines, because incorrectly they believe standards lead to bland pages. Using Cascading Style Sheets (CSS), designers can make pages with good lookup, which can be changed easily any time.

Smaller file sizes
By separating styles from HTML page and putting it into a standalone CSS style sheet (.css file), designer can reduce the of code in your web pages. Pages with less code have smaller file sizes and Google and other major search engines prefers pages with smaller file sizes.

Apart from that Google doesn't define the actual page size of the web page, but community of search engine optimizers believe that the size of a web page is not be greater than 100KB.

Hide content from browsers while it still gets picked up by Google
CSS plays an important role when you need to hide specific code or content from web browser but not from the search engines. For example you may have some content like site navigation, that you only want to appear in print, or on the screen .The advantage of CSS is that search Engine will still crawl and index all of the content of your site navigation.

How to do 301 Redirection?

Friday, October 22, 2010

Need of 301 Redirection
Do you want to change the filename but worried about its current search engine ranking? You just need to do a 301 redirection from old URL to new URL which preserves your old web page rankings. 301 redirection is search engine friendly and treated as permanent redirection in search engine optimization process.

We use different codes for different websites as following.

PHP Redirection Code
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location:" );

JSP (Java) Redirection Code
response.setHeader( "Location", "" );
response.setHeader( "Connection", "close" );

ASP Redirection Code
<%@ Language=VBScript %>
Response.Status="301 Moved Permanently"
Response.AddHeader "Location",""

ColdFusion Redirection Code
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="">

JSP Redirection Code
response.setHeader( "Location", "" );
response.setHeader( "Connection", "close" );

.htaccess Redirection Code
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)$1 [R=301,L]

I hope that above codes will help you somehow.