Today’s topic is about CSS (Cascading Style Sheets) and why it’s a better option for developing a website with good search engine optimization.
Spiders are sent out by search engines to crawl websites and index them in the search engine’s databases. These spiders use what is called “top down” logic, which means they index websites and crawl the content from the top of the source code to the bottom. Considering this, developing websites using techniques like tables and frames hinder your search engine optimization, because they add bulky unnecessary code that makes it harder for a search engine to read.
Using external CSS separates content from presentation which in turn will put the content higher in the source code. This also makes for less code altogether, making it easier for spiders to index apparent important information displayed through tags such as headers and titles.
Separating content from presentation also provides more time for making changes to presentation and/or content without searching through an endless sea of code, leaving more time to update the website with new and fresh content and/or presentation. Making updates, another thing search engines love!
Search engine spiders, as much as we’d like to believe of robotic things, are not stupid. Spiders can see the tricks you try to pull, so adding extra content with keywords and using CSS to hide them won’t help your ranking (putting white text on a white background for example).
Another thing that weighs down website code is JavaScript. Developers sometimes use JavaScript to make flashy navigation and menus; however, remembering the “top down” theory, this doesn’t help the spiders find your content. Good navigation and menus can be made just as easily using CSS and they don’t weigh down the code like JavaScript does, so it’s definitely an option to think about when developing your website.
So, in conclusion,
-
DO separate content from presentation using CSS
- DON’T try to cheat the search engines by hiding content with CSS
- DO use titles and header tags
- DON’T use too much JavaScript where you can use other methods such as CSS
- DO keep the “top down” theory in mind
- DON’T write messy, hard to read code
- DO update websites often