Forum Moderators: open
I know this is a very broad question, but are there any "rules of thumb" to having good, spider-friendly source code. What should I avoid?
Any examples you could give of what I should look for, and change immediately if I see it, would be greatly appreciated.
Thanks in advance. beekiller
I know this is a very broad question, but are there any "rules of thumb" to having good, spider-friendly source code.
For myself and many others here, validation is one "rule of thumb" to having good, spider-friendly source code. Once you've addressed the validation issues, you've eliminated one major area that may cause issues with spiders and users alike.
The next step would be site architecture.
Pick a method that works for you and stick to it, don't follow fads without understanding the technical consequences and requirements of that doctype.
Do cross browser testing, don't assume something will work just because it validates.
Avoid all uppercase in your html, there's no reason to do that, and it makes it easier to upgrade the source code to a more complex doctype like xhtml in the future.
Learn what tags are deprecated, like font, center etc, and why they are deprecated, and what they are replaced with, css.
Don't get into multiple-nested-DIV hell. Don't use inline styles (get the style information into an external style sheet instead). Get rid of all <font> tags, and associated code clutter.
Validate both the HTML and CSS code.