Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,258 Programmers. There are 1,980 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

SEO tricks in CSS

 
Reply to this topicStart new topic

> SEO tricks in CSS

no2pencil
Group Icon



post 26 Sep, 2007 - 05:53 AM
Post #1


SEO tricks in CSS :

Use nicely formatted h1 tags right after the <body> tag for
preference.

CODE

h1{
  font-family:Verdana;
  font-style:normal;
  font-size:11px;
  font-weight:bold;
  text-align:left;
  margin-left:20px;
  color:#000000;
}


An h1 tag is worth its’ weight in gold, so to speak. It will hold much more value on your site than regular text. So by placing key words in h1 tags, you make your content worth more to a search engine.

In combination with h1 tags, try using a background image for the 'logo' so your h1 remains the first thing the search engine crawler sees. The closer to the top of the page that your h1 tags are, the more they are worth. So by using background images, your h1 tags are that much closer to the top of your page, & therefore worth that much more to your overall SEO value.

I use JavaScript “onmouseover” to change the cursor from text to default pointer. By using text rather than images, you will add more occurrences of key words. Also, by changing the font of the text, the text will look more like a photo. Remember that a crawler doesn't recognize text that is contained in your images.

Use your CSS to form your font choices, both in your paragraph tags as well as your tables. Font tags and tables make the HTML code harder to crawl accurately. Also remember that a portion of your visitors are still on dial-up and if the HTML code still contains lots of tables & other code, the page could take extra seconds to load!

Move the unique text that you want the page to rank for, along with any related links to the top of the HTML file. This is probably the single most important reason for using CSS from an SEO perspective, and can have a significant impact on rankings.

Also, using CSS cuts down on content->code ratio. This can make your entire site easier and more efficient to crawl, leading to better indexing of your site's content.

Resources:
http://www.w3.org/TR/REC-CSS2/
http://www.stonetemple.com/articles/css-and-seo.shtml



Register to Make This Ad Go Away!

JessicaW
*



post 6 Nov, 2007 - 07:14 AM
Post #2
no2pencil,
Thanks for tutorial smile.gif
this code works for opera 9.5

my software reviews

This post has been edited by JessicaW: 6 Nov, 2007 - 07:16 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 5/16/08 09:59AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month