I've been given some legacy, table based code that I'm supposed to make html4/strict.dtd complaint.
Is there any technique to removing inline styles and old html attributes that should be css and making them into css?
I would take a full assessment of how many repeat styles you have, those become your classes. The non-repeated styles that are for your main areas are your id's.
There's no fast way to do this. If you are looking to break out of the table and into a pure web standards design, then the best way is to wireframe your current site and replace your tables with divs/other semantically correct elements. Then look at the inline styles and apply your classes/id's for those sections.
A quick example:
Your table has 5
tds merged into one that represents a header. The inline style has an
img tag and
color tags, and some
font tags for a menu, maybe,
Replace that with one
div that has an
id to represent that. Inside your
id would be the image for the background, a
color for your fonts. Inside your
div, you would have an inline
ul to represent your menu. Your
body tag would set up your general text for the whole site, and maybe some
class(es) to alter the text just for the menu/text inside the header
And so on...
Converting isn't fast, but well worth it when your load times and search engine rank improve.