Forum Moderators: Robert Charlton & goodroi
Do you think that a change to CSS from the old HTML would be helpful? Also is it best to change everything at once, or publish one section at a time?
Thank you for all your help.
I think the largest benefit is the indirect effect this type of change may have on the overall 'value' of the site.
I think by switching to css you gain a few advantages:
1. Generally, the code is much shorter / cleaner, which will do two things:
A. Help the site to load faster. You might look into calling some graphics from the style sheet while loading others from the html.
B. Change the 'code to visible text' ratio of the site, which may be beneficial to some extent for search engine rankings.
2. Provide a better 'visitor experience', which should directly impact visitor behavior, and reduce the number of immediate 'it's ugly' back clicks to find another search result.
3. Increase 'time on site' / 'page views' prior to another search for the same or a different query. (Slightly different than a 'back click' if you picture a visitor typing a new query, rather than clicking 'back' a number of times to return to the original query and selecting another result. Even if they do click back the time between queries will be increased by increasing page views and usability.)
4. You can generally do a much better job of html tagging, because you have control over the style each tag presents.
So, where you might currently want to emphasize text using an html tag, but choose not to because the 'look' might not be as easy to read, with the use of css you can. For Example: With some font sizes the use of <em> or <i> will cause the text to appear smaller, making it difficult to read, but with the use of css, you can set the size of <i> tags to 1px large than your standard size, making the text appear to be the same size, and easier to read.)
Also, by setting heading tags to the same size, (or the size of your choice for each) you can properly tag headings (easily) from 1 to 6, without having to worry about the 'display size' of each heading, which gives search engines an 'order of importance' for text headings.
5. You have much more control over 'page load order', without the use of 'empty tables / rows / cols' and adjust a page to load from 'most important' to 'least important'. (This is more about communicating with SEs than visitors, by allowing you to load a page (in the source code) in the order a visitor is most likely to read, which, when combined with proper heading tags can help indicate 'order of importance' of topics to a search engine.)
There are a few more reasons I opt for css, but those are the main ones.
As far as change over, I personally use 'all at once', just because it says, 'new template' and makes a site easier for visitors to use, since they only need to get used to one style / format. (It's also generally easier to use a bulk 'find / replace' to make sure I don't miss anything than to try to make changes by hand, or in 'sections'.) I'm not sure how much it matters from a SE perspective, but prefer a site be consistent for visitors.
Justin
I appreciate the feedback. Although what do you think in terms of search engine impact. I know there is no rule or guarantee although based on experience, will moving to CSS have a positive impact in terms of the search engines.
I haven't seen any change in rankings for the sites I optimize which have changed to css.
It's possible that if you have a huge amount of text preceding your main content, you might see some gain by using css positioning, but for us there was no noticeable change (perhaps because our pages didn't have this issue). You might get better snippets in the serps for some queries on some engines by moving your nav text down.
CSS should speed up spidering, and if you have an extremely large site, that change might get more pages indexed.
Also is it best to change everything at once, or publish one section at a time?
I'd also suggest doing everything at once. Simpler all the way around, and no adverse effects.
The orginial (and current) design of the site is very poor.
Above comments relate to design and code changes only. If you're changing content or url structure, you run into a whole different set of issues. It's possible you may have to make both kinds of changes, in which case you'll have to look at those as well.
[edited by: Robert_Charlton at 11:26 pm (utc) on Aug. 24, 2007]
Questions:
1. Is it recommended to put my site's main navigation in an include or keep it coded in each and every page?
2. Is there anything to watch out for in this process of switching to CSS?
Thanks!
I appreciate the feedback. Although what do you think in terms of search engine impact. I know there is no rule or guarantee although based on experience, will moving to CSS have a positive impact in terms of the search engines.I haven't seen any change in rankings for the sites I optimize which have changed to css.
I have asked and seen this question asked many times and nobody has ever said their rankings were adversely affected after the swap over
I'd also like to add that its worth going back and reading the reasons why CSS was invented in the first place...
As for "includes" they are a very good thing to use. I use PHP includes quite a lot.
I usually have an "include" that has the site navigation on it. When the navigation changes (maybe an extra page or something) then I just have to add the link once to the one "include" file, rather than having to edit every page of the site.
Likewise, there is another for the page footer.
I usually have an "include" that has the site navigation on it. When the navigation changes (maybe an extra page or something) then I just have to add the link once to the one "include" file, rather than having to edit every page of the site.
are these includes cached or are they re-loaded for every page view?