Top 10 Tips for Optimizing CSS Seo

The following 10 best practices are designed to speed-optimize your CSS, and your
HTML markup:
1. Replace inline style with type selectors to target multiple instances of identical
elements.
2. Use descendant selectors to avoid inline classes.
3. Group selectors with common declarations.
4. Group declarations with common selectors.
5. Combine common styles into shared classes.
6. Use inheritance to eliminate duplicate declarations.
7. Use CSS shorthand to abbreviate rules and colors.
8. Abbreviate long class and ID names.
9. Use CSS2 and CSS3.x techniques.
10. Replace JavaScript behavior with CSS techniques.
In addition, you can eliminate extraneous whitespace by removing tabs, comments,
and returns.

Tip #1: Replace Inline Style with Type Selectors
This section starts with simple type selectors to streamline markup, and then it
moves through grouping, inheritance, and CSS shorthand, and finally to some
applied techniques to replace JavaScript behavior.

Web pages that use inline style pepper HTML code with unnecessary font and style
tags. This effectively hardcodes the presentation directly within the HTML. Unless
the style is used only once, it is more efficient to create a CSS rule and target all elements
of a certain kind with type selectors (i.e., p, ul, h2, etc.). For example, this:
<h2 style="font-size:1.2em;color:red;">Little red Corvette</h2>
<h2 style="font-size:1.2em;color:red;">Baby you're much too fast to embed</h2>
<h2 style="font-size:1.2em;color:red;">Little red Corvette</h2>
<h2 style="font-size:1.2em;color:red;">You need a love that's gonna last</h2>
becomes this, by abstracting the inline style to a block style:
<style type="text/css"><!--
#main h2{font-size:1.2em;color:red;}
--></style>
The corresponding HTML cleans up to this:
<div id="main">
<h2>Little red Corvette</h2>
<h2>Baby you're much too fast</h2>
<h2>Little red Corvette</h2>
<h2>You need a love that's gonna last</h2>
</div>
Note how clean the code becomes after you remove the inline styles. This CSS technique
also helps search engine optimization (SEO) by boosting keyword density and
prominence.
Related Posts:
  • Integrating FeedBurner with your site Integrating FeedBurner with your site is relatively simple.You can think of FeedBurner as your website’s feed wrapper service to make yourfeed more compatible, more visible, and more easily tracked. To redirect your existin… Read More
  • Website Performance Traps Website performance is important from two perspectives: the web spider’s and the webuser’s. If your site has many thousands of pages, you will want to make sure your siteresponse times are reasonable. Web spiders are busy c… Read More
  • Microblogging with Twitter Microblogging with Twitter has its limitations. You can do only so much with a singletweet. You have only 140 characters to describe what you are doing. Anytime you wantto share a long URL, you may run over the 140-character… Read More
  • Important crawlers? Google:Crawler DescriptionGooglebot Crawls web pages (it’s the most important of the bunch)Googlebot-Mobile Crawls pages specifically designed for mobile devicesGooglebot-Image Crawls images for inclusion in image search res… Read More
  • Creating custom website widgets Everything starts with an idea. Creating custom widgetscan be as simple or as complex as required. You can create some website widgets bysimply creating custom HTML pages. Others you can create by utilizing Atom/RSSfeeds, Ja… Read More
  • Domain Name Keywords If your domain name contains an exact (or partial) match to a search query, chancesare it will show up on the first page of the SERPs—at least on Google. Google giveskeyword matching domains preferential treatment.The except… Read More
  • Use Intelligent Page Formatting Try using smaller paragraphs with mixed-case text. Use boldface, italics, uppercase,and different text color variations for emphasis. Employ browser-safe fonts such asTimes New Roman, Georgia (serif font), Arial, Helvetica, … Read More
  • Content-Sharing Sites The big players in content sharing have made it relatively simple for anyone to leveragetheir platforms in the creation of media-rich content.YouTubeThree former employees of PayPal created YouTube in 2005. They sold YouTube… Read More
  • Optimize Your Site for Speed Nobody has unlimited patience these days. Not everyone has high-speed Internet. Stayaway from (Flash) splash screens. Compress your media files for faster page loading.Use media files only when you need to. Also make sure to… Read More
  • Website SWOT Analysis A classic staple of business school is the SWOT analysis—identifying strengths, weaknesses,opportunities, and threats faced by a business or project. By combining data from your businessasset assessment and historical tracki… Read More
  • Web Directories? Web directories are not search engines in the typical sense; they are collections of linksthat have been organized by humans. The advantage of web directories over typicalsearch engines is that all the links are (usually) re… Read More
  • Search Engine Indexing Google and others are indexing more pages than ever. Many of the modern searchengines now boast upward of a few billion indexed documents. Here is how Wikipediadescribes the process of search engine indexing:Search engine in… Read More
  • JavaScript Dynamic Links and Menus Many sites use JavaScript to create links to other website pages. Here is some examplecode with different link types that you may want to avoid: <HTML><head><title>Link Examples ~ Things to stay away from&l… Read More
  • keys to getting links, Since creating emotional reactions can result in links, building content that plays to theemotions of potential linkers can be a powerful tool for obtaining links. Sometimes thisprocess is referred to as link baiting. One ke… Read More
  • SEO monitoring phase Once the major SEO work is done in the implementation phase, the focus will be onwebsite maintenance. The maintenance phase takes care of problems (minor and major)found in the (re)assessment phase. In many ways, the mainten… Read More